Posts Tagged jquery
A Simple jQuery Print Page Plugin
Posted by Ian in javascript on February 26th, 2010
The other day I was after a really simple way to add a print page link to a page to, well, er, print it. So I came up with my jQuery Print Page plugin and stuck it on GitHub with a demo page: http://github.com/ianoxley/jqueryprintpage
This really is nothing fancy: it’s just a convenient way of adding an <a> tag plus an event-handler to a page to print it. Using it is as simple as, well, using File -> Print. But you can’t style the File menu with CSS so this is much more fun
jQuery Form Focus Plugin Released
Posted by Ian in javascript on June 9th, 2008
I have released the first version of my jQuery Form Focus plugin. This lets you set the initial focus on any form element but is careful not to set the focus if the user has already started filling in the form. To use it you call something like:
$('#username').formFocus();
$('form input:first').formFocus();
$('form#options input[type="checkbox"]:first').formFocus();
Hope you find it useful.