$('dragform').submit() Õâ¾äÓ¦¸ÃÔõôÀí½âÄØ£¿
Ìá½»Ò»¸ö±íµ¥£ºform.submit();
ÓÃJavascriptÌá½»±íµ¥´ó¸ÅÓÐÁ½ÖÖд·¨£¨¸ù¾ÝÎÒÄ¿Ç°µÄÀí½â£©
1. document.formName.submit();
2. var form = document.getElementById(id);
form.submit();
$('dragform').submit() jqueryÓï·¨
±íʾÓÐÒ»¸ö±íµ¥name=dragfo ......
var objZong=isNaN(parseInt(document.getElementById("lab_DeptBudget").value,10))?0:parseInt(document.getElementById("lab_DeptBudget").value,10);
ÕâÑùÈ¡µÄ»° textboxµÄÖµ¿ÉÒÔÈ¡µ½ ¿ÉÊÇÕâ¸ölabelµÄÖµ¾ÍÒ»Ö±ÕÒ²»µ½
ÒýÓÃ
document.getElementById("lab_DeptBudget").innerText
l ......
bbs.attjs.com
¹ØÓÚJSµÄÂÛ̳£¬±¾ÂÛ̳²Åн¨²»¾Ã£¬Ï£Íû´ó¼Ò¶à¶à¹âÁÙ¡£Ôڴ˸Ðл
www.attjs.com
Ò²Óкܶàѧϰ×ÊÁÏ¡£×£´ó¼ÒѧϰÓä¿ìŶ
¶¥¸öÏÈ¡£¡£¡£
¼ÓÓÍ£¬ºÃºÃ¸É¡£
ºÁÎÞÀíÓɵĽӷÖ
½Ó·Ö£¬Ï£ÍûÓкõÄ×ÊÔ´ºÍ½»Á÷Õß
ºÜºÃ
......
ÎÒÏëÎÊ¡£¡£jsÖпÉÒÔͨ¹ý¸ö±éÀúËùÓÐÔªËز¢ÓÃgetelementbyID»ñÈ¡Ö¸¶¨IDµÄÔªËØ£¬ÄÇôÔõÑù²ÅÄܱéÀúËùÓÐÔªËØ´Ó¶ø»ñÈ¡ÓÐÖ¸¶¨classµÄÔªËØÄØ£¿£¿ºÃÏñûÓÐgetelementbyClassÕâ¸öº¯Êý°É£¿£¿
лл£¡
jqueryµ¹ÊÇ¿ÉÒÔµÄ
$(".classname").each(function(){
});
»ò×Ô¼ºÐ´µÄ
var type="input";
var classname = ......
ÎÒͨ¹ýAjax´Óºǫ́»ñÈ¡µ½Êý¾Ý£¬È»ºóͨ¹ýjson´«µÝµ½JavaScriptÀïÃæ
֮ǰÓÉÓÚûÓÐÉèÖñàÂë¸ñʽ£¬µ±ÓÐÖÐÎĵÄʱºò»áÏÖʵÂÒÂë¡£
ºóÀ´ÎÒÔÚresponseÀïÃæÉèÖÃÁËutf-8µÄ±àÂëºó£¬ÄÜÕý³£µÄ»ñÈ¡µ½ÖÐÎÄ
µ«ÊÇÎÒÔÚÓôӺǫ́»ñÈ¡µ½µÄÊý¾Ý ºÍ ǰ̨ҳÃæÉÏ »ñÈ¡µÄÊý¾Ý×ö±È½ÏµÄʱºò ·¢ÏÖÈçÏÂÎÊÌ⣺
Ò³Ãæij¸öinput »ñÈ¡µÄÊý¾Ý Ϊpro1 = testa£¬ ......
ÇëÎÊ£¬ÊéÉÏÓÐÕâÑùÒ»¶Î£º
ÔÚÒ³ÃæÓиödiv±êÇ©£¬ÑùʽÖÐvisibilityΪhidden£¬È»ºóÓÖÉèÖÃÒ³ÃæÁ´½ÓµÄonmouseoverʼþ´¦Àí³ÌÐò£¬Ê¹Êó±êÔÚ¸ÃÁ´½ÓÉÏʱ£¬
ÄǸödivÔÚµ±Ç°Î»ÖóöÏÖ¡£
¸Ãʼþ´¦Àí³ÌÐòÊÇʵÏֵģºÊ¹¸ÃdivµÄλÖÃΪÊó±êµ±Ç°Î»Öã¨ÉèÖÃtop£¬leftÊôÐÔ£©£¬È»ºóÉèÖøÃdivµÄvisibilityÊôÐÔΪ¡°visible¡±¡£
ÎÒÏëÇëÎʵÄÊÇ£¬ÉèÖø ......