Jquery newbie - select value / text / number from table cell?

$('td input:text'). Filter(function() { return $(this).val() == 0; }). Val("") or $('td input:textvalue="0"').

Val("").

$('td input:text'). Filter(function() { return $(this).val() == 0; }). Val(""); or $('td input:textvalue="0"').

Val("").

Perfect. That makes way more sense than what I was trying. Thanks for the quick and accurate reply.

– dah97765 Aug 5 at 13:56 that second one was more along the lines of what I was trying, but I was trying to expand on my $('inputname^="r"'). Filter('inputname$="d"'). Val('') line already...something like $('inputname^="r"').

Filter('inputname$="d"').text(). Val('') – dah97765 Aug 5 at 13:58 @Matt - Thanks for the edit, didn't realise value="0" would work for typed values. – Richard D Aug 5 at 13:59.

I am a total Jquery / JS newbie - as I'm playing with it for the first time this week. I have a giant html table in a cfm file. The values of these cells are set elsewhere in the JS.

What I want to do is select all of the cells that have a particular value (zero, in this case), and set them to null. Which selects ALL of the cells. How do I filter that to only set those which are zero to null, instead of ALL of the cells?

MUCH appreciated guys! I've been trying a lot of things to no avail.

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