The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › jQuery – How to find what the text is inside an element.
I was trying to figure out how to get the text off a page in a <TD> with a Class. That way I can do a conditional statement on the return value such as either hide or show another DIV.
I tried the following with no luck:
var giftopt = jQuery(“#giftopt”);
if (“#giftopt == ‘Someone Else'”) { //do something }; if (“#giftopt == ‘Me'”) { //do something }; });