December 19th, 2013, 09:11 AM
How to load value to text field when choose value in select
Hi every one, I have problem need help that, I have a form have 1 select filed and 1 text field, I want when I choose value in option of select the text field will load/appear value in proportion to value of select, example in picture when I choose "B" in select field, the value in text filed will appear "1", so how to do it, I need example to refer, guide or demo example, Thank for read my topic.
Here is Image:
<form id="cv" action="" method="">
Choose Option: <select id="chedo">
Value: <input type="text" id="lenh" size="40"/>
<input type="submit" value="SUBMIT"/>
December 19th, 2013, 09:19 AM
December 19th, 2013, 11:06 AM
thank for read and help of everyone, here is code
var selected = $("#chedo").val();
December 19th, 2013, 11:46 AM
December 20th, 2013, 10:48 AM
Nice to see you got it working.