Loading...
 

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: 27 France

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

$(":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']")


Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.