just getting myself familiar with jquery, please consider me as a noob for now.
I am trying to select text in this follow scenrio:-
<div id="blah">
<p> <span>Text1</span> text2</p>
</div>
How can I get the value of text2 ?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
If you want the text of entire
ptag use:Otherwise if you want to exlude the
spanpart, then use:Your text will now be stored in the variable named
text.