how to get the selected checkbox row value in a table using jquery code example

Example 1: how to fetch the selected value of dropdown jquery

BY LOVE
$('#ddlName option:selected').val();

Example 2: how to get selected row index of table in javascript

<html>
<head>
<title>Row indexes</title>
<script type="text/javascript">
onload = function() {
    if (!document.getElementsByTagName || !document.createTextNode) return;
    var rows = document.getElementById('my_table').getElementsByTagName('tbody')[0].getElementsByTagName('tr');
    for (i = 0; i < rows.length; i++) {
        rows[i].onclick = function() {
            alert(this.rowIndex + 1);
        }
    }
}
</script>
</head>
<body>
<table id="my_table">
<tbody>
    <tr><td>first row</td></tr>
    <tr><td>second row</td></tr>
</tbody>
</table>
</body>
</html>

Example 3: jquery change the label of a value in select

$("#FIELDID").find("option:contains(\"OptionLabel\")").text('NewLabel');