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 4558396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:38:39+00:00 2026-05-21T17:38:39+00:00

http://jsfiddle.net/nicktheandroid/ape5U/ There’s 2 or 3 things I need help with, if you can help

  • 0

http://jsfiddle.net/nicktheandroid/ape5U/

There’s 2 or 3 things I need help with, if you can help me/guide me in the right direction on any of them, that would be great.

1) make script case-insensitive

2) When typing 'holy' it will show ‘angels, jesus, holy spirit’, when adding the word 'spirit' it will only show ‘holy spirit’. I want it to still show ‘angels, jesus, holy spirit’ but to have the pink number next to each of those list items change to reflect how many keywords they each have that match one or more of the keywords you typed. So if i type 'holy spirit' then I want it to show the ‘angels, jesus, holy spirit’ list items, because they all have the keywords 'holy', so each list item’s pink number should read 1, but ‘angels’ and ‘holy spirit’ also contain the hidden keyword 'spirit', so their pink numbers should increase by 1 each.

  • angels 2
  • jesus 1
  • holy spirit 2

now if I add 'archangel' to 'holy spirit' so i have 'holy spirit archangel' typed in, then the 'angels' list item’s pink number should increase to 3, because it contains 3 of the keywords i’ve typed in, making it the most accurate one.

right now the pink numbers don’t do anything, and it filters down and only shows the list items with the EXACT keywords. I need to correct these things, any help is MUCH appreciated. I’ve spent hours and hours on this.

  • 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-21T17:38:40+00:00Added an answer on May 21, 2026 at 5:38 pm

    If you always store the tags as lowercase, then just convert all typed entries to lowercase before you use the split. Additionally, you are presently matching against the text, not the tag list.

    The way you have your matches test done, is like an & – AND, if you want it to be an | – OR then start false and switch to true when a positive match, rather than vice versa.

    As for the counting, set all values to 0 at the commencement of a new scan, then when a tag is detected in the comparison loop, increment the value in that tag.

    Updated Demonstration: http://jsfiddle.net/ape5U/22/

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

Sidebar

Related Questions

http://jsfiddle.net/nicktheandroid/ZSvHK/ I need help figuring out how to get this right, problems listed below.
http://jsfiddle.net/nicktheandroid/yshcR/2/ you can type into the input box any of the words you see
http://jsfiddle.net/CApW2/ I can't get it done the right way, left and right div are
http://jsfiddle.net/ujTDf/1/ link text Can anybody help please. The div/form doesn't switsch automaticly in other
http://jsfiddle.net/jqrmh/ $(.one).position({ my: right top, at: right top, of: $(.main), }); I need to
http://jsfiddle.net/nicktheandroid/3LxRr/ When highlighting a paragraph containing a link that's set to display:inline-block, there appears
http://jsfiddle.net/chakri/92tqF/ I need help with the above code. I am trying to disable the
http://jsfiddle.net/nicktheandroid/6BAfH/1/ The list-elements are sorted accordingly by the number in their span. Why is
http://jsfiddle.net/nicktheandroid/QhL2M/ (type bye into the input box) Purpose of the script: Each li contains
http://jsfiddle.net/aam7J/ How would I induce div-like behaviour on the input element? Specifically, how can

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.