Inline label Bookmark and Share

Introduction

Inline label is jQuery-plugin that puts label texts inside fields.

Demo



Usage

$(function(){
	$('#id').inline_label(); // default setup
	$('#id').inline_label({text: "my_text"}); // use text instead of label text
	$('#id').inline_label({use_title: true}); // use the title instead of label text
	$('#id').inline_label({css_class: "my_inline_label"}); // which css-class the field should use
	$('#id').inline_label({hide_label: false}); // whether to hide the label or not after using its text
	
	// you can also set these options globally, e.g.
	$.inline_label.defaults.hide_label = false;
	$('#id').inline_label(); // label will not be hidden
});

When using the text or the use_title option, hide_label makes no difference.

Download

Download inline_label.tar.gz

Changelog


Please support my work through Flattr!

Creative Commons License
Inline label by Calle Kabo is licensed under a Creative Commons Attribution-Share Alike 2.5 Sweden License .
Based on a work at kabo.nu .

Valid XHTML 1.1 | Valid CSS