Answers for "how to use an html div by name in jquery"

1

how to use an html div by name in jquery

<tr>
  <td>data1</td>
  <td name="tcol1" class="bold"> data2</td>
</tr>


$('td[name="tcol1"]')   // Matches exactly 'tcol1'
$('td[name^="tcol"]' )  // Matches those that begin with 'tcol'
$('td[name$="tcol"]' )  // Matches those that end with 'tcol'
$('td[name*="tcol"]' )  // Matches those that contain 'tcol'
Posted by: Guest on April-06-2021

Code answers related to "how to use an html div by name in jquery"

Browse Popular Code Answers by Language