OiO.lk Blog jQuery JQuery not working on ASP.NET content page
jQuery

JQuery not working on ASP.NET content page


I have Visual Studio 2022. I initially created a simple ASP.NET web application to test some jQuery. That worked.

I’ve now got the same code in a working ASP.NET web application and the jQuery is not being executed. The only difference being the later app is using a master page.

This is the installed jQuery:

I dragged and dropped the jQuery file jquery-3.7.1.js to the HTML page:

The Script word has been underlined and the message for that is:

Validation (XHTMI 1.0 transitional): Element ‘script’ is missing required attribute ‘type’.

I’m assuming this is the problem as my test app is not displaying the same underlined and works, however this is what it looks like on the test app when dragged and dropped:

Any ideas why I have this problem?



You need to sign in to view this answers

Exit mobile version