Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6714681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:31:26+00:00 2026-05-26T08:31:26+00:00

I have an if statement and for some reason I cant seem to get

  • 0

I have an if statement and for some reason I cant seem to get it to work, Can anybody see why?

http://jsfiddle.net/7YKgS/1/

I have a span tag that contains a string and im trying ot say if this string == X then do this, if not do something else.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:31:27+00:00Added an answer on May 26, 2026 at 8:31 am
    if ($('span.errorp:contains("323ou")').length > 0) {
        //found at least one that contains the text
        alert('hi');
    } else {
        alert('working');
    }
    

    Fiddle: http://jsfiddle.net/maniator/7YKgS/4/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK, I can't work out what index I should have on TBL_PHOTOS to get
I have following statement for query articles from some sections Article.all(:joins => :sections, :conditions
I'm having some trouble with an SQL statement that have to find the number
I have seen some developers use the return statement in a catch block. Why/when
I have some codes read the query results from sqlite: while (sqlite3_step(statement) == SQLITE_ROW)
I have a rather long switch-case statement. Some of the cases are really short
I have written a relatively big insert statement, and some of the fields are
I have what I think is a pretty simple migration. For some reason I
I have a jQuery issue I can't get past: (function ($) { var links
I am having a problem with my c# code I can't seem to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.