Skip to content

Tag: jquery

Remaining characters if data exists Javascript

I have a web site where users create an account and that information is saved to a JSON. When the user hits “save” the page refreshes and that data is echoed in the field pulling from the JSON. The problem I am experiencing is in one text area I want to limit the amount of characters. The script w…

jQuery append onclick

I’m append html code using jquery append function. If on onclick I use function with one parameter – all right, but if I use function with multiple parameters I get error in console: SyntaxError: missing ) after argument list. My code: Function addBook: What I’m doing wrong? Answer You need …

Is there a way to hide chars on start point?

The “$$$” chars were used for get indexof and hide list in code behind. Now I want to ask is there a way to hide these chars with jQuery and/or JavaScript?   Answer You could put them in an element like <span class=”hide”>$$$</span> and then use JQuery to hide the element u…