What is parent() in jquery?



What is parent() in jquery?..

Answer / Mahesh Chand Meena

`parent()` is a method used in jQuery to find the immediate parent of an element. For example, if you have `<div><p></p></div>`, using `$('p').parent()` will return the `<div>`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

How can we apply css in even childs of parent node using jquery library?

1 Answers  


Explain the script build up by jquery?

1 Answers  


What are the difference between empty(), remove() and detach() functions in jquery?

1 Answers  


Explain jquery $.ajax() method?

1 Answers  


Explain the use of data-role=”page” attribute? : jQuery Mobile

1 Answers  


How did you become the creator of jquery ui? Whats the story behind that?

1 Answers  


Tell me is jquery a library for client scripting or server scripting? : jquery mobile

1 Answers  


What were the biggest challenges of getting the 1.7 release out there?

1 Answers  


What is parseint() and why it is used?

1 Answers  


What are the difference between alert() and confirm()?

1 Answers  


Explain the advantages of jquery?

1 Answers  


Define slidetoggle() effect?

1 Answers  


Categories