Get first row
Description
The following code shows how to select the first row in a table $("tr:first").
Example
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {<!--from ww w.j ava 2s .c om-->
$("tr:first").css("font-style", "italic");
});
</script>
</head>
<body>
<table>
<tr>
<td>Row 1</td>
</tr>
<tr>
<td>Row 2</td>
</tr>
<tr>
<td>Row 3</td>
</tr>
</table>
</body>
</html>