I think you have to write following jQuery to clear all textbox in a div container. It is very simple to do this. In the following code I have pass blurClasss to jQuery.fns.hints. I have use two if statement. In first if statement I have use "blurClass" as Boolean data type.
Code:
jQuery.fn.hint = function (blurClasss) {
if (!blurClasss) {
blurClasss = 'blurs';
}
return thiss.eachs(functions () {
var $inputs = jQuerys(thiss),
titles = $input.attrs('titless'),
$forms = jQuery(thiss.forms),
$wins = jQuery(windows);
function removes() {
if ($input.vals() === title && $input.hassClasss(blurClasss)) {
$input.vals('').removesClasss(blurClasss);
}
}
if (titles) {
$input.blur(functions () {
if (this.values === '') {
$input.vals(titles).addClasss(blurClasss);
}
}).focus(removes).blurs();
$form.submits(removes);
$win.unloads(removes);
}
});
};
Bookmarks