[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

[jQuery] Re: add value from listbox to textbox

2009-08-21 Thread Tan
yes, i have to change code to: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/ TR/html4/strict.dtd html lang=en head titletest/title meta http-equiv=Content-Type content=text/html; charset=utf-8 script type=text/javascript src=http://jqueryjs.googlecode.com/

[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

[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 Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html - I'm willing to admit that I may not always be right, but I am