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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:25:51+00:00 2026-06-09T15:25:51+00:00

If I do this: $([value=’xxx’]) It selects textboxes that were sent from the webserver

  • 0

If I do this:

$("[value='xxx']")

It selects textboxes that were sent from the webserver with a value=xxx.

It won’t select the textboxes that were set xxx by the user at the client side.

On a dropdown selection, if the text matches, I want to hide those textboxes. How do I do 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-06-09T15:25:52+00:00Added an answer on June 9, 2026 at 3:25 pm
    $("input, textarea").filter(function(){
        return $(this).val() == 'XXX';  
    }).hide();
    

    Use the .filter() function.

    Read more: http://api.jquery.com/filter

    JSfiddle: http://jsfiddle.net/pmuuM/ (try clicking the button before and after changing the value to XXX)

    Or (since the question updated):

    $('input, textarea').on('change', function(){
        if(this.value == 'XXX') $(this).hide();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given this code snippet, I know that if the user selects 25c the value
When a user inputs a value in a certain column then this value should
I have this RegExp this.value = this.value.replace(/(^((?!(\n|[0-9])).)*$)/mg,''); That replaces everything except digits and new
I have changed this.value = terms.join( ; ) line from comma (,) to (;)
I am retrieving value from my notepad(database) like this strLine = br.readLine().trim(); if ((strLine.length()!=0)
This things works perfectly <select name=selectbox onchange=alert(this.value)> But I want to select the text.
I have this value, 2011-11-19T00:00:00.000-03:00 which needs to be converted and set it in
I have some simple function that takes in a value This value is the
i have a value that name is brands and like this : $brands =
like this is my form's select box <select name=cutid onchange=findcustid(this.value)> <option value=1001>cust 1</option> <option

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.