Element Selector In Jquery

Praveen Singh         No comments

Let's understand this with some code as mentioned in  below screenshot..



As you can see element has been mentioned here 3 times without any value within.
Now, What if I want all 3 elements to have some values within.. it's simple !!

To get this , We have to mention something like this in the test.js :


Now, if you double click on the html file , you will get the output :


Same output for all elements !!
Again, What if I don't want same values for all elements.In that scenario, We can do something like this:

And the output :



Published by Praveen Singh

A blogger by passion.You can find me tucked in my bed and blogging on weekends when not roaming around. Besides blogging, I love music and you can find my songs on my fb page:PraveenUnplugged
.
Follow on Youtube : Videos On Latest Happenings |ThingsToKnow
.
Follow us Talend In Action

0 responses:

© 2015 Techie's House. Designed by Bloggertheme9