Emad khan

Emad khan

  • 1.6k
  • 57
  • 42.4k

how to get text inside a td from jquery

Jan 29 2014 3:34 AM
My question is " how can i select those <td> whose text starts with word "All" , and then set there class with name ".all" dynamically through jQuery"
 
<style type="text/css">
.all {text-decoration:bold;}
</style>
 
 
<table border="0" width="100%" class="tbClass">
<tr>
<td class="heads">Mobiles</td>
</tr>
<tr>
<td>Samsung Mobiles</td>
</tr>
<tr>
<td>All Mobiles</td>
</tr>
</table>

Answers (6)