Javascript 51
JavaScript Array Methods Example
JavaScript Array provides lot of useful methods to working with. In this Demo, “We will explore all the methods present in JavaScript Array With Example“. Check the below code for all the Array Method Declaration using function:- var ARRAY_METHOD={ /*Concat : Combines two array*/ getConcatResult:function(array1,array2){ return array1.concat(array2); }, /*Shift : Removes the First Element of […]
Using Jquery Proxy Mechanism
Jquery Provides Proxy Mechanism through $.proxy() method. Proxy mechanism is really helpful where we need some delegate to represent the functionality. Generic use case of a proxy mechanism is the way of binding different context to a method through a proxy wrapper. In this Demo, “We will create method to change color of the text […]
Using Nth Child Selector in CSS And Jquery
CSS3 provides “Nth Child” selector for element selection. In this Demo, “We will see the use of Nth selector in CSS3 and Jquery“. JavaScript/Jquery Array Index starts from ZERO(0), But CSS3 indexing starts from ONE(1). This cause the problem of selecting an element.For example, when you select 1st element in Jquery it will select the […]
Event Namespace in Jquery
Jquery provides custom events using namespace. A Event Callback method can be attached with a custom event to a HTML element. A namespace can be created and used to a event using dot operator. In this Demo,“We will attach a click event with namespace for all the LI elements inside a Un-Ordered List”. Below code […]