Answers for "how to access element using tag and name in jquery"

2

jquery tag name

$('anything').prop("tagName")
Posted by: Guest on March-10-2020
2

how to use an html div by name in jquery

<tr>
  <td>data1</td>
  <td name="tcol1" class="bold"> data2 </td>
</tr>
<script>
  $('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'
</script>
Posted by: Guest on April-06-2021

Code answers related to "how to access element using tag and name in jquery"

Browse Popular Code Answers by Language