Skip to content

webpolis/dlFavorite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dlFavorite - jQuery Plugin
==========================

Easily toggles a checkbox/radio button into a "star" (Gmail like) favorite button, 
and optionally provide a callback and/or AJAX destination to make the appropiate changes.  


Options:  
                        imgStateDisabled:       star icon on disabled state  
                        imgStateEnable:         star icon on enabled state  
                        ajax:                   destination URL to process field's value  
                        onChange:               callback executed on state change  


Example:  
                        $('input[type=checkbox]').dlFavorite({  
                           imgStateDisabled: 'star_grey.png',  
                           imgStateEnable: 'star.png',  
                           ajax:'/ajax/setFavorite'
                        });  

About

jQuery Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors