How to join or merge an Array in JavaScript?

Javascript on MoreOnFew.com

I’m sure you must have had a scenario where you had to join or merge two different Arrays. Well, let me tell you that its an easy task. However, there are different ways this can be done. Merging multiple arrays using Array.concat() method. JavaScript has a native method Array.concat() which does it. Let’s take a look … Read more

How to search for a string in JavaScript?

Javascript on MoreOnFew.com

The String data type must be the most common data type that we use in JavaScript. One of the most common functionality around string that we would have come across is to search for a string/character/word within another string. You can easily search for a word in javaScript using the string.search() method of JavaScript. The … Read more

How to use Crossroads.js? A tutorial with examples

Javascript on MoreOnFew.com

Are you making a Single Page Application  or an SPA ? And Do you want to update the URL of the page without reloading the page? Do you want your page to respond to the change in the URL without reloading the page? In Short, if you are looking for a javascript routing library then … Read more

Understanding jQuery animate function

jQuery Banner

jQuery’s .animate() function has helped many front end developers around the world to create web pages with custom animations and effects by just using combinations of jQuery , css and sometimes images. It helped us get rid of flash for most of the simple (and at times complex) animations. And I must say that this … Read more

What is the difference between .prev() , .prevAll() and .prevUntil() jQuery APIs ?

jQuery Banner

jQuery has made a drastic change in the way JavaScript are written. It has given more scripting power to the developers and the ability to “write less and do more” . Recently a friend of mine, who is a newbie Javascript developer, came across the .prev() , .prevAll() and the .prevUntil() APIs of jQuery. He … Read more