JQuery: value() and text() not returning table cell's text?

You need to write $("#requests :nth-child(2) td:first").text() Using a jQuery object's indexer ( $(...)0 ) will return the raw DOM element If you want to call jQuery methods, you need to call them directly on the jQuery object, without using an indexer If you want to call a jQuery method on a single element in a jQuery set, call eq like this: $(...). Eq(3).text() There is no value() method in jQuery The val method will set or return the value of a form element.

You need to write $("#requests :nth-child(2) td:first").text(). Using a jQuery object's indexer ($(...)0) will return the raw DOM element. If you want to call jQuery methods, you need to call them directly on the jQuery object, without using an indexer.

If you want to call a jQuery method on a single element in a jQuery set, call eq, like this: $(...). Eq(3).text(). There is no value() method in jQuery.

The val method will set or return the value of a form element.

Ah. I outsmarted myself. I knew it had to be easier than I was making it.

– wesgarrison Feb 24 '10 at 16:30.

When you use the bracket notation to grab an object out of the jQuery object, it grabs a raw dom element. Instead use $('selector'). Eq(0) .

Then your methods should work.

.text() returns all of the text within an element, so that should work. Without seeing more of your HTML, there's no way to know if your $("#requests :nth-child(2) td:first") matches the element in question.

Yes, it does match. I have a #content I excluded for clarity. – wesgarrison Feb 24 '10 at 16:27.

You need to write $("#requests :nth-child(2) td:first").text(). Using a jQuery object's indexer ($(...)0) will return the raw DOM element. If you want to call jQuery methods, you need to call them directly on the jQuery object, without using an indexer.

If you want to call a jQuery method on a single element in a jQuery set, call eq, like this: $(...). There is no value() method in jQuery. The val method will set or return the value of a form element.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions