Jquery not working in .NET Form

If you look at https://www.corobori.com/_FlotWebChart.html it works fine, but the same code as a webform does not. For me it keeps running in a never ending loop, see https://www.corobori.com/_FlotWebChart.aspx

.js and css files are the same, What’s wrong ?

You are using a button element, which has a default action of submitting the form.

One way around this is to retrieve the event object, so that you can prevent the default action from occurring.

        $("#example-1").click(function(evt) {
            evt.preventDefault();
            ...
1 Like

Thanks Paul ! Working fine now :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.