I'm an ASP.NET beginner. I'm having problems getting my ASP.NET web form to process the external JS file I have listed on the page. Does jQuery have limited functionality with ASP.NET when used externally?
It is processing the first click event on the checkbox, but not the submit button. I've run other tests like alert(), alert without jquery using window.document.onready. I've tried to alter the CSS on elements and manipulate the DOM with jQuery. I've had no success with those techniques either. NOTE: When I use embedded jQuery directly on the web form, everything works fine.
To whom ever responds, Thanks!!!
// THIS IS WHAT IS IN THE EXTERNAL FILE
$(function(){
$("#CheckBox1").click(function () { // FIRST FUNCTION WORKS FINE
$('#Panel1').toggle(!this.checked);
}); // end click
$("#SubmitBtn").click(function () { // CONFIRM ON CLICK IS NOT WORKING
return confirm("Are you sure you want to submit?");
}); // end click
}); // end ready