[jQuery] Re: add value from listbox to textbox

2009-08-21 Thread Dhruva Sagar
In fact you have to re-check the *id* of both the 'select' box and the 'text-box'.It should work if these two are correct. Thanks & Regards, Dhruva Sagar. Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I

[jQuery] Re: add value from listbox to textbox

2009-08-21 Thread Dhruva Sagar
Well, I re-read your HTML, and I see that the 'id' of the text box you have mentioned is 'edit-field-sourc-0-value', please just make sure the spellings of the 'id' of the text field are right, exactly as you have in your HTML Thanks & Regards, Dhruva Sagar. Jonathan Swift

[jQuery] Re: add value from listbox to textbox

2009-08-21 Thread Tan
yes, i have to change code to: http://www.w3.org/ TR/html4/strict.dtd"> test http://jqueryjs.googlecode.com/ files/jquery-1.3.2.min.js"> $(document).ready(function(){ $('#edit-default-source').change(function() { $('#edit-field-soure-0-value').text($(this).val()); }); }); hongki

[jQuery] Re: add value from listbox to textbox

2009-08-21 Thread Dhruva Sagar
For the listbox you should simply use the function *change *i'll give an example : $('#edit-default-source').change(function() { $('#edit-field-soure-0-value').text($(this).val()); }); This should do what you want (if I correctly understood it), once you select an option in the select drop