0 comments / July 17, 2016

Get string between parentheses or brackets

We can easily get the string between parentheses or brackets using regular expression. This regular expression can be applied in any programming language / scripts like php, javascript,java,perl,python,c#,asp etc.

0 comments / July 15, 2016

Call function from string in javascript without eval

Lets say, we grabed a function call from somewhere and have it in a variable, Simply match the function name and parameters separately using regular expression and call the function using window object.

0 comments / June 29, 2015

Regex check minimum and maximum length

Using Regular expression( Regex ), We can check whether the given string has minimum no. of characters or whether it is inside specified range etc.

0 comments / June 22, 2015

Replace string in javascript

Generally, "replace" method in java script replaces only the first occurrence in the given string. We can change this behaviour by using regular expression.

0 comments / April 03, 2015

TypeError: e[h] is not a function

This error occurs when you use jquery and a form input element such as button with id or name as "submit"

0 comments / March 15, 2015

Check checkbox checked or not jquery and javascript

We can check checkbox checked status in javascript through its checked property, Like that we can use "is" function in jquery to get checked status

0 comments / November 02, 2014

Browser detection in javascript

Sometimes we just need to know client web browser to deliver information or add some code specific to the browser. In a client web browser navigator object holds client browser name,version, user agent,platform and other details.