i create one jquery but not proper output get.
html:
<table id="gvCustomers"><tbody>
<tr>
<th style="width:150px;">Contact Name</th>
<th style="width:150px;" scope="col">CustomerID</th>
<th style="width:150px;" scope="col">City</th>
<th style="width:150px;" scope="col">edit</th>
</tr>
script:
$("#gvCustomers tr th").live("click", function () {
alert("hi this is tested");
alert(this.text());
});
i want to get perticular header text when i click on header of table but in this only first alert display not second.
in console display message is "this.text is not a function"
pls help me