Assalemou 3alaykom,
I’m newbie in Yii && PHP/Javascript. I want to run a Javascript function before submit my Form
Do some thing like that in Yii
<html>
<head>
<script>
function doThis()
{
alert("testing");
return true
}
</script>
</head>
<body>
<form action="test.php" onsubmit="return doThis()" method="post">
<input type=submit >
</form>
</body>
</html>
Any body can help me how to implement that in Yii ?
Many thanks ya ikhwan