Okay, so I'm trying to merge a couple of different posts here... I have the Input field being placed in a DIV (Post Here) working great. Also, I have the copy value from one field to another (Post Here) working correctly as well. Now I am trying to combine the two, but value is not being copied over. I am pretty sure I'm not pointing at the correct selector, but I have tried a number of times with different combinations with no results. I have tried the following in all different combinations: #q78 DIV.cf-field INPUT, #q78 DIV.cf-field SPAN, #q78 DIV.cf-field DIV
My code is below.
Insert Field in DIV:
var carrier = $('#carrier');//Carrier var txtCarrier = $('#q78 DIV.cf-field INPUT, #q78 DIV.cf-field SPAN');//Search for INPUT or SPAN, SPAN is used for display txtCarrier.remove(); //remove the textbox from its current location txtCarrier.insertAfter(carrier); //Insert it after the placeholder carrier.remove();//Remove the placeholder $('#q78').hide();//Hide the old label
Copy Value:
$('.company input').blur(function(){ $('.company_sub input').val($(this).val()); $('#q78 input').val($(this).val());
The idea here is to have the submitter fill out the 'Company' field on the first tab, then pass this information to the next tab where Company (q78) should be the same value. This will eliminate the user from having to enter the same value multiple times.