Loading...
 
Development

Development


JQ data-channel text area

posts: 41 US

I am trying to send form data to trackers using this JQ:

$("inputname='ins_11'").bind('change', function() {
valeur=$(this).val();
$("inputname='applicationName'").val(valeur);
});

This code works for me but does not handle text areas. The code above works great for text boxes. I have also tried using .text() as well, with no luck.

All insight helps,
Thanks

posts: 40 France

Here is an example which works for me with a textarea:

Copy to clipboard
$(":input[name='ins_282]'").bind('change', function() { valeur=$(this).val(); $("input[name='CGDescription]'").val(valeur); });

You will need to adapt names and ids, but note the colon ":" in the selector:

$(":input[name='ins_282']")