How to create and read cookies in JavaScript

The cookies are the small bit of the text data that can be stored in the user’s browser so that it can be reuse in the next request. Generally web server instruct to write the cookie on the user’ browser. But you can also manipulate the cookies using JavaScript. You can create, delete, modify and read using the Document.cookie property. Continue reading “How to create and read cookies in JavaScript”

How to prevent your javaScript code from syntax errors

The Syntax error in the JavaScript code is very common error type when your write the code. Generally when you write the wrong structure of the JavaScript code , browser will give the syntax error at the time of interpretation. Small syntax error in the JavaScript code on a Web page can stop the script from working correctly. Continue reading “How to prevent your javaScript code from syntax errors”

List of jQuery UI widgets and their version added

Some time we try to use the jQuery UI widget with the lower version of jQuery UI supported. At that time it gives an error like as: Object [object Object] has no method ‘[somthing]’.

So you can check the added version of the used widget or jQuery UI control from the following list. Continue reading “List of jQuery UI widgets and their version added”

Example: test() and exec() methods of the RegExp in JavaScipt

We know that regular expression is just string pattern or simple string that describes the sequence of characters for searching something in the specified string. The test() method of any regular expression object returns the Boolean value that indicates whether or not the searched pattern exists in specified string. Continue reading “Example: test() and exec() methods of the RegExp in JavaScipt”