What is jQuery code to select all links in first paragraph?



What is jQuery code to select all links in first paragraph?..

Answer / Manmohan

To select all links within the first paragraph using jQuery, use `$('p:first-child a')`. This will return an array of all <a> elements that are children of the first <p> element.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

What is parseint() and why it is used?

1 Answers  


How to add and remove css classes to an element using jquery?

1 Answers  


Explain the difference between size and length of jquery?

1 Answers  


Explain jquery connect?

1 Answers  


Why should I use jquery?

1 Answers  


Which is the starting point of code execution in jQuery?

1 Answers  


What is the use of .size() method in jquery?

1 Answers  


What are the different type of selectors in jquery?

1 Answers  


What is each() function in jQuery? How do you use it?

1 Answers  


What is the difference between the id selector and class selector in jquery?

1 Answers  


How can we apply css in last child of parent using jquery library?

1 Answers  


How to disable cut,copy and paste in TextBox using jQuery?

1 Answers  


Categories