Hi,
<a data-role="button" data-click="onClick" >Open</a>
<ul data-role="actionsheet" id="actionsheet">
<li><a data-action="foo">Foo</a></li>
<li><a data-action="bar">Bar</a></li>
</ul>
function onClick(){
if(i>5)
{
// I want to open above action sheet here if condition satisfy,
}
else
{
alert("Cannot open action sheet");
}
}
I want to open the actionsheet on the click of button.
After clicking button, onclick function is invoking where i am doing some condition checking.If condition satisfy i want to open action sheet.
Please do the needful.If possible please provide demo in JS Bin
<a data-role="button" data-click="onClick" >Open</a>
<ul data-role="actionsheet" id="actionsheet">
<li><a data-action="foo">Foo</a></li>
<li><a data-action="bar">Bar</a></li>
</ul>
function onClick(){
if(i>5)
{
// I want to open above action sheet here if condition satisfy,
}
else
{
alert("Cannot open action sheet");
}
}
I want to open the actionsheet on the click of button.
After clicking button, onclick function is invoking where i am doing some condition checking.If condition satisfy i want to open action sheet.
Please do the needful.If possible please provide demo in JS Bin