jquery - Close the child of the parent of the parent -


नमस्कार, मेरे पास ऐसा HTML कोड है

  & lt; div id = "top" & gt; & Lt; div वर्ग = "पैनल" & gt; & Lt; h1 & gt; toppanel & lt; / h1 & gt; & Lt; p & gt; टॉप पेनेल की सामग्री & lt; / p & gt; & Lt; / div & gt; & Lt; div वर्ग = "पैनलधारक" id = "ptop" & gt; & Lt; एक वर्ग = "खुला" href = "#" & gt; खुला & lt; / a & gt; & Lt; एक वर्ग = "बंद" href = "#" & gt; बंद & lt; / a & gt; & Lt; / div & gt; & Lt; / div & gt; समय से अधिक के लिए  

केवल डिफेंन्से पहली डिव से आईडी है मेरा jQuery कोड इस तरह दिखता है

  // विस्तार पैनल $ ("। खोलें")। क्लिक करें (फ़ंक्शन () {$ (#### ###)। स्लाइड डाउन ("धीमी");});  

और मेरा सवाल है कि मुझे $ (#######) के लिए लिखना है, अगर मैं स्लाइड को वर्ग पैनल के साथ डाइव करना चाहता हूं

  // विस्तार पैनल $ ("। खोलें")। क्लिक करें (फ़ंक्शन () {$ (this)। Parent ) .siblings ('। पैनल')। स्लाइडडाउन ("धीमी");});  

आपको एपीआई दस्तावेज़ीकरण को पढ़ना चाहिए।


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -