Skip to content

Tag: javascript

Max characters in textarea with jquery

I have the following code, and I’m kind of stuck on what to do next. The idea is when you enter text into a text area a counter tells you how many characters you have left. Once you get to the max characters I want to stop allowing characters to be entered, or delete all the characters that were entered

What is the hash tag used for in JavaScript?

I’m not talking about in the URL. I know what that does. I’m talking about how it’s used in actual code. After trying to assign it as a variable, I realized that it’s reserved, but I don’t know what for. Answer Javascript, or more precisely ECMAscript, is an evolving language. So…