Give this a try...

<script type="text/javascript">

 $(document).ready(function(){

 $('select').change(function(){
        var key = $(this).parent().parent().find('input').val();
        var v = $(this).val();

        $('#MSG').html( key +'<BR>'+ v );
});

});


</script>
<body>

<table>
<tr>
<td><input type="hidden" value="key"/></td>
<td><select id="A" class="selectGroup"><option value=""
selected="selected">choose</option><option value="1">one</
option><option value="2">two</option></select></td>
</tr>
</table>

<div id="MSG" style="width:200px; height:100px; background-
color:#FFC"></div>



Good luck,
Jon

Reply via email to