asked on
Jquery not working properly on Edge
1> contact1.aspx
It is without master page, Basically its calling Jquery function on textbox change, when I put special character for eg &# and click on submit button
then it shows alert of special character and same time it calling update button on codebehind. What i want is if special character entered and click on submit
button then it should just display alert message and submit button event should not be called, Same thing working on Chrome,IE11, Safari.
2> ContactusN.aspx
It is with master page, Basically its calling Jquery function on textbox change, when I put special character for eg &# and click on submit button
then it shows alert of special character and same time it calling update button on code behind. What i want is if special character entered and we click on submit
button then it should just display alert message and submit button event should not be called, Same thing working on Chrome,IE11, Safari.
Please help me to fix this issue.
It is very hard to eyeball debug your code.
Perhaps make a jsfiddle.net that shows the actual issue in a simple format
Do you have console messages at all?
What's the idea behind the
javascript: window.history.forward(1);
in the first page?
Also these will register an event handler to each ID
$('#' + id).change(function () { CheckSP(); });
$('#' + idMul).change(function () { CheckSPMul(); });
You should use a class and use
$('.classSP').on("change",CheckSP);
$('.classSPMul').on("change",CheckSPMul);
ASKER
Also I have used ID because I want to monitor if any textbox of page, special character is entered then we should show them alert and stop going further.
Just go to jsfiddle.net, Click CLOSE in the top menu to get an empty fiddle.
Enter HTML in the top left, JS in the bottom left and CSS in the top right.
Then choose the framework in the top left of the JavaScript frame, selecting bottom of head for example if your code is fully contained. Your DOC really has far too much code to figure out.
ASKER
Well this is not an ASP related issue. If you can boil it down to only the thing that goes wrong and put just that HTML and script in a fiddle it will be much easier to test
ASKER
Just use the RELEVANT jquery and HTML files. And only enough of them to show the issue. No need for a complete HTML file when you only need one textbox. No need for a complete JS file when you only need the function that fails
ASKER
DemoCode.docx