Finding difference between two dates using javascript
When we need to calculate the difference between two dates using javascript we need to convert the string to date and here is the code to do this And to find the difference in hours And to find the difference …
Place holder using javascript
By using javascript we can create placeholder which is compatible with the older browsers which didn’t support the new placeholder and here is the code on how we can do this
How to show a div for some time and hide it after some time
Lets make an div that stays lit up for 2-3 seconds and take 1 second to blink. we can use the jQuery’s fadeIn and fadeOut to make the div blink Create an div Having the style as The jQuery portion …
How to track clicks on a facebook like button
Sometime its necessary to check whether someone clicks on or makes like on the facebook like button and the facebook provide an call back function this is the normal code to add facebook like button By adding this snippet of …