1

选择网格的值并且应该出现在网格行中

4

2 回答 2

1

试试这个,

jQuery代码

<script language="javascript" type="text/javascript" src="jquery-1.8.2.js"></script>

<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        $('#selectbox').change(function(){
            var val = $(this).val();
            $('.changedValue').html(val);
        });
    });                
</script>

HTML 代码

<form>
    <select name="selectbox" id="selectbox">
        <option value="A">A</option>
        <option value="B">B</option>
        <option value="C">C</option>
    </select>
</form>

<table width="400" border="1" cellpadding="2" cellspacing="2">
    <tr>
        <td>Changed Value</td>
        <td class="changedValue">&nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
</table>
于 2012-11-09T05:16:52.867 回答
0

you can create grid with jQuery Check below link for grid view with jQuery..

http://www.trirand.net/default.aspx

http://reconstrukt.com/ingrid/

于 2012-11-09T04:51:49.263 回答