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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:21:23+00:00 2026-06-14T17:21:23+00:00

<div id=values>10 67 87 100 56</div> <div id=#val1>87</div> How can I delete 87 value

  • 0
<div id="values">10 67 87 100 56</div>

<div id="#val1">87</div>

How can I delete 87 value from array when click the #val1 with jquery?

  • 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-14T17:21:24+00:00Added an answer on June 14, 2026 at 5:21 pm

    Another way of doing it could be like this:

    ​$(function​ () {
        $("#val1").click(function() {
            var arr = $("#values").text().split(" "); // Create an array of the values
            var toRemove = $(this).text(); // Get the value to remove
    
            // Remove the value
            arr = $.grep(arr, function(value) {
                return value != toRemove;
            });
    
            // Add the new array back as text (without the removed value)
            $("#values").text(arr.join(" "));
        });
    });​
    

    See fiddle here

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

Sidebar

Related Questions

I am trying to update cost values in a separate div from an external
I'm trying to call a php function from jquery function to calculate some values
Probably something stupid I'm doing. I want to populate a hidden DIV with values
there is a div with some values like this: <div id=links> <link1>||<link2>||<link3> </div> i
I am currently using id values in div tags to serialize , i.e: HTML:
I am binding the selected values of autocomplete box into a div tag as
I am trying to get a list of values within a div that I
I am using the following code to store values in aspx session. Code: $(div.menu_body
I have the following HTML <div class=myclass value=1> <div> <div class=myclass value=> <a class=popup
I want to get the value of div using webdriver and not Selenium For

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.