If you want to limit the characters your user/visitor can type in an input field, you CAN, using the maxlength attribute. But if you want to limit the characters for textarea, you CAN’T, because it doesn’t support the maxlength attribute like inputs do. So here is a little jQuery script that will make the textarea’s maxlength attribute work.
continue reading >>
We all want to code much faster, right? Well there is a nice app that will help you code much much faster.
continue reading >>
Demo Source
HTML
<input type=’text’ class=’description_active’ value=’Click to see the effect…’>
jQuery
$(document).ready(function() {
$(‘.description_active’).click(function(){
$(this).removeClass(‘description_active’).val(”);
});
});
Pretty simple, we have an input field with class ‘description_active’ and a default value assigned to [...]
continue reading >>
Simple tutorial on how to make your website iPhone ready.
continue reading >>
In today’s daily tip we will make a little jQuery script to check and return the visitor’s browser.
continue reading >>
There are few reasons why you would want to disable the menu we get after clicking right mouse button. One of them is if you want to show your own menu. In this daily tip we will disable that default menu using jQuery.
continue reading >>
There are few reasons why you would want to disable the menu we get after clicking right mouse button. One of them is if you want to show your own menu. In this daily tip we will disable that default menu using jQuery.
continue reading >>
CKEditor and a few free icons for the tuesday freebies.
continue reading >>
Some things you just can’t do with CSS or you can but it’s not easy at all, and one of them is verticaly center an image inside a div. Here is how you can do it easily with jQuery.
continue reading >>
This is the first of many “daily tip” posts, in which i will explain the difference between $(document).ready() and $(window).load(), and when to use which.
continue reading >>