Tag Archives: Filters

AngularJS

AngularJS Agenda Definition, History Define the features and Components Step of creation of Angular JS Application AngularJS – Directives. AngularJS – Expressions. AngularJS – Modules. AngularJS – Controllers. Angular JS – Two way data binding. Angular JS – Ng-repeat and Neatest Ng-repeat. Angular JS – Events Handling AngularJS – Filters. AngularJS – HTML DOM. AngularJS… Read More »

Add table row in jQuery

Here I will explain how to add table row in jQuery. We can use .append() method to add another row in table as you can see in the below example. <html> <head runat=”server”> <title></title> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script> <script> $(document).ready(function () { $(“tr :last”).append(‘<tr><td>add by jQuery</td></tr>’) }); </script> </head> <body> <form id=”form1″ runat=”server”> <div> <table> <tr> <td>… Read More »

Filters in jQuery

It allow you to select a specific element based on its position in a group of elements or returns elements that match with the certain criteria. Syntax: $(selector).filter(criteria,function(index)) we will explain some types of filter like first(), last() and eq(), filter() and not() . Exxample:- <!DOCTYPE html> <html> <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script> <script> $(document).ready(function(){ $(“p”).filter(“.elem”).css(“background-color”, “yellow”);… Read More »

Filters in AngularJS

Here we will learn Filters in AngularJS with example. Filters :  Selects a subset of items from array and returns it as a new array. In HTML Template Binding {{ filter_expression | filter : expression : comparator}} In JavaScript $filter(‘filter’)(array, expression, comparator) lets take a brief example:- <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <script src=”//ajax.googleapis.com/ajax/libs/angularjs/1.5.0-rc.0/angular.min.js”></script> </head> <body ng-app=””>… Read More »