我有以下小提琴如何動態觸發可摺疊事件中的所有數據角色=「可摺疊」目前
我怎樣才能觸發點擊事件上述所有類我,collaspible
<div data-role="content" class="data">
<div class="my-collaspible" data-inset="false" data-role="collapsible">
<h3>Top Stories</h3>
<p>4 Britons Who Sought to Get to Syria Arrested on Return to UK</p>
<p>SpaceX Rocket Blasts Off, Then Lands Too Hard on Ocean Barge</p>
<p>CCTVs in Buses in Kolkata to Make Journey Safer</p>
<p>Report Fire, Accidents in Goa Via App</p>
</div>
<div class="my-collaspible" data-inset="false" data-role="collapsible">
<h3>Sports Headlines</h3>
<p>West Indies hold firm after early England wickets</p>
<p>Rajasthan Royals face Mumbai Indians</p>
<p>One week to go, no IPL chairman as yet</p>
</div>
<div class="my-collaspible" data-inset="false" data-role="collapsible">
<h3>Movies</h3>
<p>MOVIE 1----------</p>
<p>MOVIE 2----------</p>
<p>MOVIE 3----------</p>
</div>
</div>
的JavaScript
$(document).ready(function() {
$('.my-collaspible').on('collapsibleexpand', function() {
alert('ssss');
});
});
你能澄清你到底想要發生什麼嗎? – smerny
什麼時候應該觸發?打開所有打開的文件時是否要打開所有文件,或者是否有單獨的按鈕打開所有文件?你需要提供更多細節。 – Dhunt