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

  • SEARCH
  • Home
  • 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 6161971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:34:19+00:00 2026-05-23T21:34:19+00:00

I made a search script which searches for Hallow and alerts. var Item =

  • 0

I made a search script which searches for “Hallow” and alerts.

var Item = $('td > a:contains("Hallow")').text()
if(Item) {
alert(Item); }

This javascript is working for this html:

<html><body><div style="Padding:10px;">

            <table width="469" cellspacing="0" cellpadding="2" border="0">

                        <tbody>
                 <tr valign="top">
                        <td width="313">&nbsp;<img width="11" height="10" src="graphics/Default/Miscellaneous/weight.gif" alt="Yük: 3" title="Yük: 3">&nbsp;

                        <a href="CharacterDetails.asp?action=ViewItemDetails&amp;ItemTypeiD=236&amp;ItemID=100084253&amp;CharacterID=53845">Kovboy çizmeleri</a>                                                                                                                              </td>
                    <td width="140" align="right">  </td>
                </tr>



                    <tr valign="top">
                        <td width="313">&nbsp;<img width="11" height="10" src="graphics/Default/Miscellaneous/weight.gif" alt="Yük: 5" title="Yük: 5">&nbsp;

                        <a href="CharacterDetails.asp?action=ViewItemDetails&amp;ItemTypeiD=168&amp;ItemID=68615745&amp;CharacterID=53845">Halloween Canavar Maskesi</a>


                      </td>
                    <td width="140" align="right">

                    </td>
                </tr>



           </tbody></table>
              <table width="469" cellspacing="0" cellpadding="3" border="0">
                </table>


  <br>
  <br>
  </div></body></html>

But sometimes item is secured. And html is like this:

     <html><body><div style="Padding:10px;">

                <table width="469" cellspacing="0" cellpadding="2" border="0">

                            <tbody>

                        <tr valign="top">
                            <td width="313">&nbsp;<img width="11" height="10" src="graphics/Default/Miscellaneous/weight.gif" alt="Yük: 3" title="Yük: 3">&nbsp;

                            <a href="CharacterDetails.asp?action=ViewItemDetails&amp;ItemTypeiD=236&amp;ItemID=100084253&amp;CharacterID=53845">Kovboy çizmeleri</a>                                                                                                                              </td>
                        <td width="140" align="right">  </td>
                    </tr>



                        <tr valign="top">
                            <td width="313">&nbsp;<img width="11" height="10" src="graphics/Default/Miscellaneous/weight.gif" alt="Yük: 5" title="Yük: 5">&nbsp;

                            <a href="CharacterDetails.asp?action=ViewItemDetails&amp;ItemTypeiD=168&amp;ItemID=68615745&amp;CharacterID=53845">Halloween Canavar Maskesi</a>


                          </td>
                        <td width="140" align="right">
Secured
</td>
                    </tr>

                    </tbody></table>
                  <table width="469" cellspacing="0" cellpadding="3" border="0">
                    </table>


      <br>
      <br>
      </div></body></html>

I dont want my javascript to alert me if item is secured.

Function must be like that

var Item = $('td > a:contains("Hallow")').text()
var Itemsecured = (A code)
if(Itemsecured) {
}
else {
alert(Item)
}

I need the correct version of this code.

And this is important: I have two items, one is secured other is not. Javascript must alert me.

  • 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-23T21:34:20+00:00Added an answer on May 23, 2026 at 9:34 pm
    $('td > a:contains("Hallow")').each(function(){
        if($(this).parent().next('td').text() == 'Secured') {
          // actions for secured item
        }
        else {
          alert($(this).text());
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a PHP search script that scans a text file repository of
I have made the following search script but can only search one table column
I made a simple ajax live search in PHP and javascript. I used standard
I have a script which allows to display bing search results: JsFiddle If you
I have this very simple jQuery script, which gives me error that delay is
I have a PHP script search script that logs every query made in a
i've made a php search engine a while ago and now i have this
I've made script which change information from different site, its occure when i click
I have been playing around a bit with a fairly simple, home-made search engine,
If there are extensive modifications made to search.aspx in SPS 2003, will they 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.