New to javascript

I was looking for a help

I have a web application where it does not accept double quotes, If the user inputs " (double quotes) it should prompt that double quotes are invalid and instead use ' single quotes
Any advice would be helpful

Why dont you rather replace the double quotes with single ones in the code, thus eliminating the need for the user to retype.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.