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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -