October 21, 2024
Chicago 12, Melborne City, USA
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:

enter image description here

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

enter image description here

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:

enter image description here

Any ideas why I have this problem?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video