How to clear the placeholder on focus
By default place holder will stay there when we click on the text box, We can do it by writing simple code with javascript as follows Don’t forget to include jQuery The above code is mentioned only for text boxes …
Redirect to a new page if javascript is disabled
We can simply redirect from a page if javascript is disabled Here is the code to do so
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 …