Adsense
Popular Posts
- Install APXS in Redhat Linux
- MySQL workbench -"Could not decrypt password cache"
- Transfer modules between sites
- JavaScript, remove trailing insignificant zeros after toFixed function
- Set Windows path command line
- datatable order by nunmeric
- MySQL date created and date modified
- super(props) in React
- PHP, dump varailbes in a format way
- React: connect(mapStateToProps, mapDispatchToProps)
Friday, October 31, 2014
jQuery, get value from cell
jQuery, get value from cell
1. Case 1
html:
<td class='type'>car</td>
jQuery
var row = $(this).parent().parent();
var type = row.find('td.type').html();
2. Case 2
html
<td class='button1'> <input class='courses_offered_id'/></td>
jQuery
row.find('td input.courses_offered_id').val();
3. Case 3
html
<td class='Ta'><select id="mySelect"><option value=" ">=No TA Assigned=</option></select></td>
jQuery
row.find('td.Ta select').val();
Labels:
jQuery
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment