Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Impromptu


Average rating
(13 votes)

Impromptu is an extension to help provide a more pleasant way to spontaneously prompt a user for input. No more alert(), prompt(), and confirm(). Easily customizable with CSS and options to add multiple buttons tailoring Impromptu to your exact need. No more prompting with "Ok" and "Cancel", now you can say "Please Do", "Not Now", "Never".

$.prompt("Procede?",{buttons:{'Please Do':'yes','Not Now':'no','Never':'never'}});

Other Options:

  • prefix: a class prefix to associate each prompt with a css class
  • submit: a function to call when prompt has been submitted
  • callback: a function to call when prompt is complete
  • opacity: prefered opacity of the overlay
  • container: jquery selector for the overlay to cover ("div.mydiv")
  • buttons: buttons you would like to display(as many as you like)
  • overlayspeed: speed which the overlay fades in/out
  • promptspeed: speed which the prompt displays
  • show: how to show the prompt(show, fadeIn, slideDown, or your own)

Releases