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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:53:09+00:00 2026-06-14T08:53:09+00:00

I have a string in jQuery $(elm).parent().parent().html() . This string return : <input name=formpage

  • 0

I have a string in jQuery $(elm).parent().parent().html().

This string return :

    <input name="formpage" value="formulaire_test" type="hidden">
<input name="postOK" value="accuse.html" type="hidden">
<input name="postNOK" value="erreur.html" type="hidden">
<input name="mailFrom" value="-1,-1,-1" type="hidden">
<input name="mailToName" value="Nom" type="hidden">
<input name="mailTo" value="a@a.fr" type="hidden">
<input name="mailSubject" value="Sujet" type="hidden">
<input value="name=mailText" type="hidden">
<div class="headerForm"><p>En tete</p></div>
<fieldset><legend>Nouveau</legend>
<div id="para0101" class="entry"><label for="id0101">sdf</label>
<input id="id0101" name="input0101" type="text"></div>
<div id="para0102" class="entry"><label for="id0102">sf</label>
<input id="id0102" name="input0102" type="text"></div>
<div id="para0103" class="entry"><label for="id0103">sfd</label>
<input id="id0103" name="input0103" type="text"></div></fieldset>
<div class="footer">pied form</div>
<div class="submit"><input value="annuler" type="reset">
<input value="envoyer" type="submit"></div>

How can i retrieve for example the value En tete in <div class="headerForm"> ??

Thanks !

  • 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-14T08:53:11+00:00Added an answer on June 14, 2026 at 8:53 am
    $(".headerForm p",$(elm).parent().parent()).text();
    

    this should do the trick

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

Sidebar

Related Questions

I have a string like that : <fieldset> <legend>Sondage</legend> <input type=hidden value=formulaire_test/poll1352736068616/testencode name=pollpost> <p
I have a string of HTML that I use as jQuery input document. //
I have a web service that returns this string via the jQuery $.ajax() call
i have a string like this : string_data = <option value='1'>ahmad</option><option value='2'>mohammad</option><option value='3'>ali</option> now
(This is greasemonkey with jquery) I have a string of data which is retrieved
i have a string that contain some html in string form, like this one
Suppose I have a string of HTML code. I want to use JQuery to
I have a string like this /folder1/folder2/folder3/IMG_123456_PP.jpg I want to use JavaScript / jQuery
I want to access the element from a HTML string using JQuery. I have
i prefer jquery. let's say i have a string with , adam, lisa, john,

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.