static div as popup in single page jqm cordova app

static div as popup in single page jqm cordova app

I am new to jquery and have a very simple single page JQM on Cordova(PhoneGap) app I'm "prototyping".

I am trying to invoke a div as popup .

I have popup div defined as:

<div  id="myPopup" data-dismissible="false" data-role="popup" data-footer="home_footer">

  <p>This is a simple popup test.</p>

 </div>


Invocation of popup is doen here:

  <a  id="PressMe" onclick='invokePopup();' >popup</a>

invokePopup=function()

$("#myPopup").popup("open"); }

invokePopup function doesn't work. 

Any suggestions are really appreciated.