onclick attribute function inside plugin not working
Hi,
I have written a simple form validator. Inside this form there are buttons with
onClick="myFunction(1)" attribute.
I have defined this function inside my plugin but clicking these buttons giving me error
"myFunction is not defined" error. I think click event is looking for this function in outer or global scope but the function is defined inside plugin. Although I have found another solution to search all the button inside plugin and bind to click event to related function which I have tested and working fine, still is there any way to make that "onclick" work?
Cheers
Prashant