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

  • Home
  • SEARCH
  • 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

In my html I have a span of class dragHandle embedded within a li.
I have as input text a big html file from where I have to
In a page with n divs of the same class, I want to have
So, I was wondering about the following: I have some main content div and
I would like to have a form triggering submit after a few seconds of
I have an html file which has to be parsed using selenium. I need
I'll jump to an example. <!DOCTYPE html> <head> <title>Transposing div using CSS</title> <style> div#wrapper
I have a few areas in a form I'm producing where I use jquery
I have the following defined in my css file: body { text-align: center; float:
I am using Jquery to get googlemap data and load it into a div.

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.