Hi,
I am building an andoid app with simple page with form with few radio buttons, submit and reset button. I have imported jquery 1.4.3 and jquery mobile javascript along with css files.
I have written the following function for submit and reset button:
function abc() {
alert('submit button clicked');
return false;
}
function def() {
alert('resetbutton clicked');
return false;
}
and my button html code is :
<div data-inline="true">
<input data-icon="gear" type="submit" value="Submit" onClick="javascript:return abc();"/>
<input data-icon="refresh" data-theme="e" type="reset" value="Reset" onClick="javascript:return def();"/>
</div>
when I click on these buttons, they just get highlighted without calling the required javascript function. I have enabled the Javascript from my app on this page but still its not firing up. But when I tried to put on form action as follows and click on submit button, it shows the alert message.:
<form action="javascript: alert('success');">
</form>
Please advise the resolution to this problem.
Thanks
Gurpreet Singh