I have the following script:\[code\]$(document).ready(function(){ $('#the-selector div.jqTransformSelectWrapper ul li a').click(function(){ var countrySect = $('#the-selector div.jqTransformSelectWrapper span').text(); }); });\[/code\]So as you noticed the var "countrySect" returns the value in the select input. the problem is i have another one similar to this one but with another class. I am trying to select value in the first one and set it to the second.. here is my full code:\[code\]$(document).ready(function(){ $('#the-selector div.jqTransformSelectWrapper ul li a').click(function(){ var countrySect = $('#the-selector div.jqTransformSelectWrapper span').text(); $('.register-state div.jqTransformSelectWrapper span').val(countrySect); return true; }); });\[/code\]But nothing is happens... what em i doing wrong?