Forums

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.

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #23385
    pghtech
    Member

    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:

    Code:
    jQuery.noConflict();
    jQuery(document).ready(function(){

    var giftopt = jQuery(“#giftopt”);

    if (“#giftopt == ‘Someone Else'”) {
    //do something
    };
    if (“#giftopt == ‘Me'”) {
    //do something
    };
    });

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.