php - #Jquery : is it possible to pass input value without using id,class,name? -


in 1 of company while giving interview php developer.

he asked me, how pass variable in jquery without using name attribute , id , class??

yes, can mention element itself.

for example:

<p>this paragraph</p>  $("p").text("test message");  // select p tags. 

Comments

Popular posts from this blog

php - How to register a post type and taxonomy in WordPress and display in a page/single post -

database - How many Observations in SAS Sample Data Output -

emulation - Android map show my location didn't work -