<div class="codetitle"> <span><a style="CURSOR: pointer" data="96349" class="copybut" id="copybut96349" onclick="doCopy('code96349')"><u>复aze代码</u></a></span> 代码如下:</div> <div class="codebody" id="code96349"> <br>function find_select(이름)<br>{<br> var select = document.getElementsByName(name);<br> var find_str = document.getElementById('to_find_str').value;<br> if(select)<br> {<br> select = select[0];<br> var child = select.childNodes;<br> var can=false,text='',len=child.length,is_end=true;<br> for(var i=0;i<len> {<br> if(할 수 있음)<br> {<br> text = child[i].text;<br> if( text &&<br> text.indexOf(find_str)!=-1)<br> {<br> / /console.log(text);<br> child[i].selected = true;<br> var v = child[i].value;<br> select.value = v;<br> select.onchange(v );<br> is_end = false;<br> break;<br> }<br> }<br> if(child[i].selected)<br> can = true;<br> }<br> if( is_end)<br> alert('已没有匹配内容');<br> }<br>}<br></len> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="88063" class="copybut" id="copybut88063" onclick="doCopy('code88063')"><u>复aze代码</u></a></span> 代码如下:</div> <div class="codebody" id="code88063"> <br><tr><br> <td><?php echo $L_SpecialActivityIdentifier?></td><br> <td> <br> <select name="Activity[Identifier]" id="Identifier" onchange="change_activity(this.value)"><br> <option value="">请选择</option> <br> <?php<BR> foreach ($ActivityTypes as $Row ) {<BR> echo '<option value="'.$Row['Identifier'].'" '.($Row['Identifier) ']==$Activity['식별자']?'선택됨':'').'>'.$Row['이름'].'</option>';<br> } <br> ?> ;<br> </select><br> -- <입력 값='' id='to_find_str' size=16 style="text-align:center;" /><입력 값='find' onclick='find_select("활동[식별자]")' 유형=버튼 /><br> </td><br> </tr><br> </div>