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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:52:13+00:00 2026-05-23T16:52:13+00:00

Is there a way to access an elements attributes from a request? I am

  • 0

Is there a way to access an elements attributes from a request?

I am receiving a request and I want to access the ‘id’ attribute of the input tag.

Is this possible?

  • 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-23T16:52:14+00:00Added an answer on May 23, 2026 at 4:52 pm

    No, use JavaScript to include element attributes as request data (like querystring or post data) in your request.

    <form method="post" action="page.jsp" onsubmit="setDataFirst();">
        <input id="container" name="container" type="hidden" value="" />
        <input id="YourElement" class="AttributeClassValue" name="YourElement" type="text" />
    </form>
    
    
    <script type="text/javascript">
        //This function will execute before the form will be submitted...
        function setDataFirst()
        {
            //Set the value of container to the attribute you want to send to server...
            document.getElementById('container').value = 'YourElementClass=' + document.getElementById('YourElement').attributes('class');
            //After the function execution, the form will be submitted...
        }
    </script>
    
    
    Now in your server you can get the value of POST data `container` which is `YourElementClass=AttributeClassValue`
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to access the response headers from an HTTP result when
Is there any way to access the Windows Event Log from a java class.
Is there a way to access the Project object from a NAnt extension function,
Is there any way to access the <compilation /> tag in a web.config file?
Are there any way to access or set iphone's alarm? Im assuming if this
I want to know is there any way to add a custom attribute to
Using Watir, is there a way to access an element without attributes? For example:
Is there a way to access elements that are in another row, while you're
Is there any way to access a layout's view from a non-Activity-derived class? I'm
Is there any way to access the file object used by a CSV writer/reader

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.