-
jQuery plugin : monnaTip 0.1
This the simplest tooltip jQuery plugin you can find around.
features:
takes advantage of live(), mouseenter and mouseleave methods
tracks mouse movement
right and bottom viewport border tracking
can be applied on any elementDemo - download - Google code
-
use name attribute for input instead of id for use with label
you need Jquery:
<label for="myinput"></label><input name="myinput" type="text" value="text here" />
$('label').live('click', function(e){
if( $(e.target).is(':input') ) return;
var i = $(':input[name="' + $(this).attr('for') + '"]')
i.is(':checkbox') ? i.attr('checked', !i.attr('checked') ) : i.focus().select();
})

