+ 4
the double quotation problem? [ solved ]
Whenever I try 2 call a js function in html using onclick ( the event attr ) with single quotes like this : onclick = "send()" // I can't write single ' quotation mark here too It shows error : No internet connection. And I can't save & post code & when I try the same: onclick = "send()" with double quotation, it works and saves the code ?! Its happening with my every new or old code.! What's happening? IS IT JUST ME OR AM I missing something in quotations And why I can't use single quotation marks around send() here In this question section 2?
2 Antworten
+ 2
I know that there is no difference in quotes in html but I couldn't save the code with single quotes so I had to put double quotes here's the code :
https://code.sololearn.com/W2wWeK4H9QOO/?ref=app
Had to put double quotes to call the send() func or I can't save the code. 😔
+ 1
There's actually no difference between double quotes and single quotes in js.
Show your code.