javascriptÔõô»ñµÃ±í¸ñ¶¯Ì¬Éú³ÉµÄselectÖеÄÖµ
var eNewRow = document.getElementById("tbl").insertRow();
eNewCell.innerHTML = " <select size='1' id='select' name='select'> <option value='1'>×Ö·ûÐÍ </option> <option value='2'>ÊýÖµÐÍ </option> </select> ";
Õâ¾ä»°±íʾµÄÊÇÎÒÏÖÔÚ±í¸ñÖж¯Ì¬Éú³ÉµÄÒ»ÁÐÊÇÏÂÀ¿òÑ¡Ïî
Ñ¡ÔñºóÎÒÒª»ñµÃÏÂÀ¿òËùÑ¡µÄÖµ
Æäʵ·½·¨ÊÇ¿ÉÒÔµÄ
var ob = document.getElementById("select");
var num = ob.options[ob.selectedIndex].innerText;
ÕâÑù¾Í¿ÉÒÔÁË
µ«ÊÇÎÊÌâÔÚÕâÀï Õâ¸öid ÊÇ×îºóÒ»¸öÉú³ÉµÄÏÂÀ¿òµÄID£¬ÎÒÇ°ÃæÉú³ÉµÄÏÂÀ¿òµÄidÈ«²¿±»Ìæ»»³É×îºóÒ»¸öÁË
ÒªÏëµÃµ½±í¸ñÖÐÿһ¸öÏÂÀ¿òµÄÑ¡Ôñ¾Í±ØÐë¶Ôÿ¸öÏÂÀ¿òÉèÖò»Í¬µÄid£¬µ«ÕâÖÖºÃÏñºÜÄÑʵÏÖ¡£
ÇëÎʸßÊÖÔõôȥ½â¾öÕâ¸öÎÊÌ⣬»òÕßÔõô»»Ò»ÖÖ·½·¨¡£
Ŷ
¿ÉÒÔ²»Í¨¹ýidÀ´»ñÈ¡£¬Í¨¹ýtagname¡£
¶¨ÒåºÍÓ÷¨
getElementsByTagName() ·½·¨¿É·µ»Ø´øÓÐÖ¸¶¨±êÇ©ÃûµÄ¶ÔÏóµÄ¼¯ºÏ¡£
Óï·¨
document.getElementsByTagName(tagname)˵Ã÷
getElementsByTagName() ·½·¨·µ»ØÔªËصÄ˳ÐòÊÇËüÃÇÔÚÎĵµÖеÄ˳Ðò¡£
Èç¹û°ÑÌØÊâ×Ö·û´® "*" ´«µÝ¸ø getElementsByTagName() ·½·¨£¬Ëü½«·µ»ØÎĵµÖÐËùÓÐÔªËصÄÁÐ±í£¬ÔªËØÅÅÁеÄ˳Ðò¾ÍÊÇËüÃÇÔÚÎĵµÖеÄ˳Ðò¡£
ÌáʾºÍ×¢ÊÍ
×¢ÊÍ£º´«µÝ¸ø getElementsByTagName() ·½·¨µÄ×Ö·û´®¿ÉÒÔ²»Çø·Ö´óСд¡£ <
Ïà¹ØÎÊ´ð£º
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......
ÔÚ¸üÐÂÃæ°åÀï×¢²áÁËÒ»¸öJavaScript½Å±¾£¨½Å±¾µÄ×÷Ó㺹ö¶¯ÏÔʾÎÄ×Ö£©£¬ÔÚ³ÌÐòÁ¬ÐøÅÜ30·ÖÖÓÒԺ󣬵¯³öÒ»¸ö´íÎóÌáʾ¿ò£¬´íÎó£ºÎ´Ö¸Ã÷µÄ´íÎó ״̬Âð£º0£¬ÆÚ´ý¸ßÊÖºÍÎÒÒ»Æð½â¾ö¡£
ÏȰﶥ¡£¡£¡£´úÂëÄØ£¿
×Ô¼ºÒ²¶¥Ï¡£ ......
ºǫ́ÓÐÒ»¸öº¯Êý protected string Fun1(int a, string b)
ÎÒÏëÔÚjavascript´úÂëÖе÷ÓÃËü£¬Ôõô×ö£¿
function GridBind()
{
var a = 1;
var b='s';
& ......
ÈçÌ⣺
²Î¿¼http://topic.csdn.net/u/20090912/12/af0562a2-6869-48b8-a1a4-bc165c02fa4d.html
ÖÐÎҵĻظ´
°ÑxmlReportData.async = "false"; ¸Ä³ÉxmlReportData.async = "true";¾ÍÊÇÒì² ......