Notice: Undefined index: HTTP_ACCEPT_ENCODING in C:\server\web\www.showyounger.com\s-system.php on line 2
javascript如何动态改变元素ID | 小样儿(ShowYounger)
小样儿,顶呱呱!!![http://www.showyounger.com]
- <script >
- function changid()
- {
- var obj;
- obj=document.getElementById("se");
- obj.id="te";
- alert(document.getElementById("te").value);
- }
- </script>
- <BODY>
- <table border="1">
- <tr>
- <td><input id="se" name="se" type="input" value="123" /></td>
- </tr>
- </table>
- <input type="button" value="changid" onclick="changid()" />