JQM- Popup not opening on .popup("show") in JQM 1.4.4, PhoneGap android 4.4.2
Hi,
I am want to add popup widget to my app and It should open by .popup("show") method.
I have popup like :
- <!-- Popup -->
- <div data-role="popup" id="mob_pop" class="ui-content">
- <a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn ui-icon-delete ui-btn-icon-notext ui-btn-right">Close</a>
- <label><b style="color:grey;">Prospect Mob. number</b></label><br>
- <p>
- <input type="text" maxlength="10" name="cust_mob" id="check_cust">
- <a class="ui-btn ui-btn-inline ui-corner-all">Submit</a>
- </p>
-
- </div>
- <!-- End of pop up -->
I have tried using :
- <a href="#mob_pop" data-transition="slideup" data-rel="popup" data-position-to="window" ><img data-rel="popup" id="reg_icon"></a>
. It is working fine with above one.But when i am using $("#mob_pop").popup('open'). It is not working
Why it is not working?