Let say I have the following javascript
function blob(alertText) {
alert(alertText);
}
I would like to call the function within my view. something like:
<% if (x == 0)
//Need to Call the javascript function here. e.g. blob("sometext");
%>
How can I call the the javascript function within the enclosed if statement in my view?