Loading...
 
Skip to main content

Features / Usability


Tracker input using jquery binding

Hello All;

Thanks to jyhem for getting me to the point I am now in trying to figure this out. I'm trying to pass a tracker item held in a country selector field to a datachannel. Jyhem has a good example on https://doc.tiki.org/Data+ChannelsQuestion but I would like to pass a value that has already been selected ( called from the tracker using the tracker plugin )

HTML



City/Town/Village * 












State/Province/District * 












Country * 


// Lots of option values
United States

Jquery ( ins_5 and ins_6 working - ins_7 returns null )

$("inputname='ins_5'").bind('object', function() {
value=$(this).val(); // This is the syntax for text fields
$("inputname='City'").val(value);
});
$("inputname='ins_6'").bind('object', function() {
value=$(this).val(); // This is the syntax for text fields
$("inputname='State'").val(value);
});
$("selectname='ins_7'").bind('change', function() {
value=$(this).find("option:selected").val(); // This is the syntax for drop-down fields
$("inputname='Country'").val(value);
});

Any help is greatly appreciated!

Robert