Skip to content

Turns an image into a widget to select and display an image (JPEG only) based on data URLs (useful for AJAX-based forms)

Notifications You must be signed in to change notification settings

DennisKehrig/jquery.image-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

jQuery: Image Input

Turns an image into a widget to select and display an image (JPEG only) based on data URLs (useful for AJAX-based forms). Use Drag & Drop or click on the image / press the space bar while it is focused.

Note: Uses the HTML 5 FileReader API provided by Firefox and Chrome (not Safari)

Usage

HTML:

<img class="input" data-default="unknown.png">

JavaScript:

$('img.input').imageInput();

About

Turns an image into a widget to select and display an image (JPEG only) based on data URLs (useful for AJAX-based forms)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published