jquery - Creating temporary HTML code -
i try make code more modular. include jspf file contain code jquery dialog required jsp file.
i want put html code js file, need include 1 .js file instead of two:
function activatezoomingdialog() { var tmpid = ???; tmpid.innerhtml = '<input type="text"></input>...'; $(tmpid).dialog({ modal: true, title: 'select area size', ... }); }
how create , maintain (life-cycle) temporary dom structure? jquery solution acceptable.
function activatezoomingdialog() { var tmpid = '<div><input type="text"></input>...</div>'; $(tmpid).dialog({ modal: true, title: 'select area size', ... }); }
Comments
Post a Comment