JustBob
10-11-2011, 11:55 AM
Hi
For example I have a HTML table...
name | grade | action
bob | 1.0 | [button class="button" id='1']
jack | 2.0 | [button class="button" id='2']
john | 3.0 | [button class="button" id='3']
When I click the button,
to get the id...
$(function(){
$('.button').click(function()
var buttonid = this.id
});
});
so if I were to press buttonid 1 how do I get the grade '1.0' without having to open the database?
For example I have a HTML table...
name | grade | action
bob | 1.0 | [button class="button" id='1']
jack | 2.0 | [button class="button" id='2']
john | 3.0 | [button class="button" id='3']
When I click the button,
to get the id...
$(function(){
$('.button').click(function()
var buttonid = this.id
});
});
so if I were to press buttonid 1 how do I get the grade '1.0' without having to open the database?