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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:01:05+00:00 2026-05-23T11:01:05+00:00

I hope that this question is not useless ! but seriously , it is

  • 0

I hope that this question is not useless ! but seriously , it is a problem for me .

when I want to build a user interface in a web application to (add, delete ,edit ) something I use HTML forms + hidden inputs to store some values such as "user id" to be deleted,edited ..

I want to build the same interface using just ” anchors + span + div ” insteand of “hidden inputs” . when I write the javascript code that handles “onAdd ,onDelete and onEdit” events I need to know what will be deleted ? what is the id that will be kicked out from my database ?

The question is , how to store this ID in my html tags without using hidden inputs ?

what I’m using is something like this :

<div id="userid_133421" >
    <span>Name</span>
    <a id="onDelete">Delete</a>
    <a id="onEdit">Edit</a>
</div>

$("#onDelete").click(function({

        user_id = $(this).parent().attr('id').substring($(this).attr('id').indexOf('_')+1);

        $.post('index.php?component=user&action=remove&user_id=' + user_id, function(data){

        });
    }));

I checked some websites such as Dropbox , and I found that they don’t use this technique to store values (such as file id) , and even more they don’t use classic hidden inputs to do that!

I just want to know how do you manage your code to choose the best way ? 🙁

  • 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-23T11:01:05+00:00Added an answer on May 23, 2026 at 11:01 am

    If you are using JQuery, why not use the data() function to store information?

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

Sidebar

Related Questions

I hope that this question has not been asked elsewhere, but I'm having difficulty
I hope that this one is not going to be ask-and-answer question... here goes:
I'm pretty sure that this question is very noob but I'm not used to
This is a very strange problem, and I just hope that I can clearly
This question may have been asked already - but unfortunately, I could not find
I face a very serious situation. By writing this question I hope that really
I hope that this is a quick question to answer. I am developing a
I am a newbie in Haskell and hope this question is not silly. I
I think that this should be easy, but I'm not able to get it
I hope this question does not come off as broad as it may seem

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.