javascript - Change text just on the first <p> without using Id or Class -


i trying change text inside paragraph (p) tag without using id or class. html generated php , paragraphs generated without class or id.

is there way change text of first paragraph tag in form?

i trying using

$(".standard-form p").html("the text has changed"); 

however, code changes paragraph tags in form.

have @ jsfiddle

https://jsfiddle.net/tym0f35w/

sure, this:

$(".standard-form p:first").html("the text has changed"); 

here's updated fiddle


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -