0

Selecting the value of the grid and that should be appear in the grid row

15
  • 1
    Create a table and style the borders with css. Commented Nov 9, 2012 at 4:42
  • Grid is usually a <table> and I'm not sure what is it that you're asking here. Commented Nov 9, 2012 at 4:42
  • with out using table. how can i create a grid Commented Nov 9, 2012 at 4:42
  • Why not use a table? It does make sense here. Commented Nov 9, 2012 at 4:43
  • 2
    @Chinnu. Google can do it even better than me. Commented Nov 9, 2012 at 4:45

2 Answers 2

1

Try this out,

JQuery code

<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 code

<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>
Sign up to request clarification or add additional context in comments.

Comments

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/

1 Comment

I think the third link is broken

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.