I came across a situation where I had to figure out, at run time, what type of elements is inside in a DIV element. The DIV on my page acts as a container. Therefore, there are few different element ...
A User Defined Function in JavaScript, allows us to perform a task multiple times without having to rewrite the codes repeatedly. You can pass values to the function and here I’ll show you how to pass ...
Let us assume I have a list of images inside a DIV element along with other elements. I specifically want to check if the element is an Image. I can use the tagName property in JavaScript to check if ...
I have written few posts here on my blog, explaining about Filters in AngularJS with examples. Here in this post I am sharing couple of simple examples on how efficiently you can implement a search ...
I have recently shared a post on how to add or remove rows to an HTML table dynamically in AngularJS. Now, if you are a JavaScript enthusiast, then this post is for you. Here, I am sharing an example ...
The URL bar or the Address bar of a web browser contains the address of a website. The URL also contains parameters or arguments, which we often define dynamically to communicate with elements or obje ...
There is couple of ways to get the day of week from a given date in AngularJS. Either you can use AngularJS date filter and its in-built date formats to get the weekday or you can simply do it from ...
AngularJS offer simple client side validation of Input data. Your form may have many input fields, which will help collect information from your users. However, you’ll need to validate the values in ...
In one of my previous article, I have explained with an example on how to check if the URL bar contains a given string using JavaScript or jQuery. Now here in this article, I’ll show you how to repl ...
Using AngularJS ng-repeat directive, you can easily bind JSON array data to an HTML table. You can use the same table to do some simple CRUD operations, like adding or removing data. Here in this post ...