<div><a href="#overlayPanel">
search</a>
</div>
<div data-role="panel"
id="overlayPanel"
data-theme="a"
data-display="overlay"
data-position="right" style="width:100%">
<h2>Overlay Panel</h2>
<a href="#pageone" data-rel="close">
Close panel
</a>
</div>
I tried above code using jquery mobiles, its increasing the size but its closing automatically when we click any where in the panel
Set data-dismissible
property to false
in your panel. Like this
<div data-role="panel" id="myPanel" data-dismissible="false" style="width:100%">
Refer this Fiddle Demo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.