2009-10-31 12 views

उत्तर

22

$(element).parent() तत्काल माता-पिता को लौटाता है।

$("#my-button").click(function() { 
    var parentElement = $(this).parent(); 
    // etc... 
}); 

http://docs.jquery.com/Traversing/parent

+0

हां, अधिक जानकारी के लिए http://docs.jquery.com/Traversing/parent –

संबंधित मुद्दे