langtianya

 jquery easy ui:http://www.runoob.com/jeasyui/jeasyui-dd-shopping.html

<html>   
  <head>   
  <title>dynamic show</title>   
  <meta   http-equiv="Content-Type"   content="text/html;   charset=utf-8">   
  
  </head>     
  <body onload=highlight(\'haha\')>       
  <script>
function highlight(obj){

var selected = document.getElementById("currency");
document.getElementById("spantest").innerHTML=selected.options[selected.selectedIndex].text;

document.getElementById("ptest").style.fontSize="xx-large";
document.getElementById("ptest").style.color="red";

}
</script>
    <tr id="trtest">
        <td colspan=3 id="tdtest" name="tdtest" >
            <select id="currency" name="currency" onchange="highlight(\'haha\')">
                <option id="op1"  value="one">1</option>
                <option id="op2"  value="two">2</option>
            </select>
        <span id="spantest" style="color:red; font-size:xx-large"></span>
        <!--p id="ptest">This is an example paragraph.</p-->
        </td>
    <tr>    
  </body>                                   
 </html> 

 

 

 

分类:

技术点:

相关文章:

  • 2021-12-07
  • 2021-11-02
  • 2021-12-18
  • 2021-12-19
  • 2021-11-22
  • 2021-06-06
  • 2021-12-26
猜你喜欢
  • 2021-10-29
  • 2021-12-16
  • 2021-12-09
  • 2021-11-05
  • 2021-11-05
  • 2021-05-01
  • 2021-11-05
相关资源
相似解决方案