0

I am trying to get the TD value using Value attribute....

Suppose i have fallowing html mark-up

<td nowrap="nowrap" value="FO2180TL" class="colPadding" id="salesOrderNumber1">bla bla <td>

then i tried this-

var  soNum = $('#salesOrderNumber1').val()

Which should return me FO2180TL but it didn't. How Can i get that TD value...
Thanks in advance!!!

3 Answers 3

6

Try this

$('#salesOrderNumber1').attr("value");
0
4

i think you should use $('#salesOrderNumber1').attr('value'); instead jquery selectors Jquery ref selector

1
2

You can get it by $('#salesOrderNumber1').attr('value');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.