Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<input id="myID" name="old_name">
<script type="text/javascript">
function changeObject(oId) {
var o = document.getElementById(oId);
o.name = "new_name";
alert(o.getAttribute("name"));
}
changeObject("myID");
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507