hi, i have a javascript code, i want to write it in yii, but i dont know how. can any one help me please
the code is:
<!DOCTYPE html>
<html>
<head>
<script>
function myFunction()
{
document.getElementById("newtype").value="New text!";
}
</script>
</head>
<body>
Some text: <input type="text" value="hello" onclick="myFunction()">
<input type="text" id="newtype">
</body>
</html>
the code is:
<!DOCTYPE html>
<html>
<head>
<script>
function myFunction()
{
document.getElementById("newtype").value="New text!";
}
</script>
</head>
<body>
Some text: <input type="text" value="hello" onclick="myFunction()">
<input type="text" id="newtype">
</body>
</html>