javascript - fetch value from one td to other? -


hey friends want know how can use value of div in other div. since working on 2 selection box. select value 1 want know value other selection box, rest can work with

this first selection box want send value 2nd.

<td>     <select id="asd">         <option value="a"></option>         <option value="b"></option>         <option value="c"></option>     </select> </td> 

this second selection box want fetch value 1st

<td>     <select id="xyz">         <option value="a"></option>         <option value="b"></option>         <option value="c"></option>     </select> </td> 

if use jquery:

$('#xyz').change(function(){      var xyz = $('#xyz :selected').val();     var asd = $('#asd :selected').val();     console.log(asd+xyz); }); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -