如何使用jQuery获取选定的表行值? [英] how to get selected table row values using jquery?
本文介绍了如何使用jQuery获取选定的表行值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要通过单击行或链接来使用jquery在表中获取选定的行值.预先感谢
I need to get the selected row values in a table using jquery by clicking on the row or a link.. i am new to jquery ,,anybody help me with sample code..that would help me greately. Thanks in advance
推荐答案
$(document).ready(function () {
$('#YourTableid tr').click(function (event) {
//do your logic here
});
});
这篇关于如何使用jQuery获取选定的表行值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文