I'm trying to use JavaScript in my page. My JavaScript code is:
function edit(){
alert("test");
return document.getElementById("confirm").value="";
}
Calling this, by onclick
function
<?php echo CHtml::button("Edit",array('title'=>"Edit",'onclick'=>'js:edit();')); ?>
both where in same page and confirmation.php