<li>list item 1</li>
<li>list item 2</li>
<li class="third-item">list item 3</li>
<li>list item 4</li>
<li>list item 5</li>
</ul>
$( "li.third-item" ).siblings().css( "background-color", "red" );
http://api.jquery.com/siblings/
// Call it on your <form>
$('form').clearForm();
http://jquery-howto.blogspot.com/2013/08/jquery-form-reset.html
<div class="comment" data-value="64">
var value = $('[div selector]').data('value');
| string | sEcho | An unaltered copy of sEcho sent from the client side. This parameter will change with each draw (it is basically a draw count) - so it is important that this is implemented. Note that it strongly recommended for security reasons that you 'cast' this parameter to an integer in order to prevent Cross Site Scripting (XSS) attacks. |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| <table id="table_id"> <thead> <tr> <th>Column 1</th> <th>Column 2</th> </tr> </thead> <tbody> <tr> <td>Row 1 Data 1</td> <td>Row 1 Data 2</td> </tr> <tr> <td>Row 2 Data 1</td> <td>Row 2 Data 2</td> </tr> </tbody></table> |