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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:53:53+00:00 2026-05-16T05:53:53+00:00

i have the html as follows <div class=element-container id=div_3> <div id=submit_submit class=element> <div class=fleft>

  • 0

i have the html as follows

<div class="element-container" id="div_3">
    <div id="submit_submit" class="element">
        <div class="fleft">
            <input type="submit" value="Click me!" name="submit" id="submit"/>
        </div>
        <div class="clr"/>
    </div>
</div>

When i click on element-container i want the label of submit button i.e. Click me!

Please give a solution , I’ve tried $('#submit').attr('value'). but i didn’t get the result

  • 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-16T05:53:54+00:00Added an answer on May 16, 2026 at 5:53 am

    There’s a built-in method in jQuery for returning the value of INPUT elements, val(). The following should work:

    $('#submit').val();
    

    I’ve never tried it with a submit button specifically though.

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

Sidebar

Related Questions

If I have a drop down list as follows <div class=editor-label> <%= Html.DropDownListFor(model =>
I have a HTML structure like follows <div id=answer-1> <a class=edit></a> </div> <div id=answer-2>
I have a basic unordered list in HTML/CSS as follows... <div class=floatleft> <ul class=help>
I have my HTML coded as follows; <div class=welcomeText> <ul> <li><span<%=Some Java Code%></span> </li>
I have 3 elements and one form with a button: <input type=submit value=Follow All
I have the following HTML markup: <body> <div class=wrapper> <div class=head> <p class=title>title</p> <a
I have my html containers as follows and it has number of levels. <div
I have the following HTML (excerpt from larger code-base) <div class=diary-event ui-corner-all title=[title]> <span
I have html like this: <form action= id=emailFillOutForm> <div class=txt-fld> <label for=repName>Rep. Name</label> <input
I have my HTML set up as follows <div> <ul> <li></li> </ul> <ul> <li>

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.