2

I am using jQuery-mobile-iscrollview from :https://github.com/watusi/jquery-mobile-iscrollview, but this is not working when changing content styles (display:none to display:block) under scrollview content.

This is my code:

$(".collapse_btn").on('tap',function(){
    $(this).siblings().toggle();
});

This is My HTML Code:

<div class="collapsible_step_two">
 <div class="collapse_content_step_two">
  <div class="ui-grid-a">
   <div class="ui-block-a">
    <button data-role="none" class="collapsecontent_btn">Whats Included ?</button>
   </div>
   <div class="ui-block-b" style="text-align:right;">
    <button data-role="none" class="collapsecontent_btn">Information</button>
   </div>                
  </div>
 </div>
 <button data-role="none" class="collapse_btn"></button>
</div>                       
4

1 回答 1

1

最后我得到了这个解决方案:

$(this).siblings().toggle().trigger("updatelayout");
于 2013-05-20T09:26:56.127 回答