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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -