One of the most used graphic resources on the web are transparent backgrounds, the main problem with them, besides the readability of the content inside, is the always hard cross browsing, so lets see how we can do some workarounds in order to make some nice transparent backgrounds. The “opacity” problem The simple and short [...]
A fast and nice way using Jquery to clean input values on focus, and put the default value back when is empty: $(“.clean”).each(function(){ var value = $(this).val(); $(this).focusin(function(){if($(this).val() == value){$(this).val(“”);};}); $(this).focusout(function(){if($(this).val() == ”){$(this).val(value);};}); }); Just add the class “.clean” to your input tag and voilá.
Working on a couple of proyects i find myself searching for a solution for the customization for our so-long-used Select tag, a.k.a Combobox. If you work with HTML you will know that its so freaking hard to add custom graphics and behaviors to this element, so i made a “simple” and kind of naiv solution [...]