jquery spring mvc html in javascript code -


i have 2 tabs 1 shown below. user selects checkbox want edit , next tab shows field editing field. first tab loaded using jquery load function. preparing second tab using direct jquery code like.. ("#tab2").append(username[i] + ".....");

i worried if have change tab2 page structure in future difficult modify. friend gave me suggestion instead of appending html in javascript, load tab2 using ajax. meant write design in tab2.jsp , when next button triggered tab2.jsp page loaded. solution problem if user goes tab1 , edit fields , click on next tab2.jsp loaded again means sending request server again.

what think better way? give me suggestion if any

first page

second page


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -