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");
Sign up to request clarification or add additional context in comments.

Comments

4

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

1 Comment

i think you should go check those llinks first Jquery slection
2

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

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.