<Scriptsrc= "Jquery-1.10.1.js"></Script> <TR> <thwidth= "20%">Options:</th> <TD> <inputtype= "button"ID= "AddItem"value= "Add Options"class= "button"onclick= "add_option ()"> <DivID= "Option_list_1"> <Div><BR> <inputtype= "text"name= "option[]"ID= "Option1"size= "Max"require= "true"ID= "OPT1"/></Div> <Div><BR> <inputtype= "text"name= "option[]"ID= "Option2"size= "Max"ID= "Opt2" /></Div> </Div> <DivID= "New_option"></Div> </TD> </TR><Scriptlanguage= "JavaScript">varI= 1;functionadd_option () {//var i = 1; //alert (' DD '); varhtmloptions= "'; Htmloptions+= '<div id='+I+'><span><br><input type= "text" name= "option[" "size=" + "msg=" 111 "value=" "class=" Input-text "/ ><input type= "button" value= "222" onclick= "Del ('+I+') "class=" button "/><br></span></div>'; $ (htmloptions). AppendTo ('#new_option'); varhtmloptions= "'; I=I+1;}functiondel (o) {$ ("Div [id=\ '"+o+"\ ']"). Remove (); }functionload_file_list (ID) {$.getjson ('? m=admin&c=category&a=public_tpl_file_list&style='+ID+'&module=vote&templates=vote_tp&name=vote_subject&pc_hash='+Pc_hash,function(data) {$ ('#show_template'). HTML (data.vote_tp_template);});}</Script>