2013 104
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 […]
2-State Custom Animation Using From-To Pair
A custom CSS3 Animation can be created using ‘kreyframe‘ property. Using Keyframe the animation definition can be given using ‘from’ and ‘to’ keyword. These keywords designates the initial state and final state of an animation. Using from/to keyword only 2 states of animation are possible. If we need to have multiple state animation, we can […]
Jquery Promise Object For Asynchronous Method Handling
Jquery “promise()” method provides better way for handling asynchronous method. In JavaScript there are two types of methods, synchronous and asynchronous method. PROBLEM DOMAIN: “Asynchronous method generally has some callback like success, error or complete.There are many situation while coding in java script where we need to call a block of code after an asynchronous […]