you can achieve this by using jquery, im functions to insert the code for you. Here is the script:
<script language="JavaScript" type="text/javascript"> $(document).ready(function(){ $(".testval1").live('change',function(){ var x = $(this).val(); if(x!='') { $(".displaydata").append("<td>"+x+"</td>"); } }); }); </script>
here is the html
<body> <form> <select name='testval1' class='testval1'> <option value=''>select data</option> <option value="110">110</option> <option value="111">111</option> </select> <select name='testval2' class='testval1'> <option value=''>select data</option> <option value="2223">2223</option> <option value="222">222</option> </select> <select name='testval3' class='testval1'> <option value=''>select data</option> <option value="Jestysd">Jestysd</option> <option value="Jesty">Jesty</option> </select> <table class="displaydata"> </table> </form>
you need to add jquery-1.9.1.min.js for this .. all the best
source share