javascript - How To Value Copy and Paste in another Textbox from Dropdown -


hi guys can tell me how copy field value field when use check box in dropdown have click check box value copy in textbox. when have select checkbox value move in textbox auto.

i using multiselect dropdwon list , need when select checkbox value option 1 or 2 value move in textbox automatic in below text box.

screenshot

      <script language="javascript">        $(document).ready(function() {     $("#dropdown").on('change',function(){     var dropdownval=this.value;      $("#textbox").val(dropdownval);      });       });      </script>     </head>      <body onload="prettyprint();">      <form>    <p>     <select multiple="multiple" name="dropdown" style="width:370px">     <option value="red">red</option>     <option value="green">green</option>     <option value="blue">blue</option>     <option value="orange">orange</option>      </select>    </p>      <input type="text" class="normal" id="textbox" name="textbox"                 style="width:450px;"></td>               </form>             <script type="text/javascript">                $("select").multiselect().multiselectfilter();              </script> 

i think may ..... 1 2 3 4

$(document).ready(function() {     $("#dropdown").on('change',function(){         var dropdownval=this.value;          $("#textbox").val(dropdownval);      });  });  </script> 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -