HI All,
Am new to this forum.
I a beginner, I was just playing arround with the basic click events.
basic details of what I am doing
1, Have a javascript file in script folder called myscript.js and referring that in mvc view
2, I have two buttons in mvc view
ajxButton and
btnJscriptFile
3, I wrote first button click event handling code , its is workign fine
4, then I add seccond one , thencode is not working.
so commented all the code except one button its working fine, pfb the working code
Can an anybody please help to soolve this
My intention is to write multiple button clicks in one document.ready function and the code has to work based on which button is clicked.
PFB the code in the file
$(document).ready(
//function () {
function ClickSure() {
$("#btnJscriptFile").click(function () { alert('btnJscriptFile button '); });
}
//function ClickSure() {
// $("#ajxButton").click(function () { alert('ajxButton button'); });
//}
//}
);
Thanks