change/extend plugin to take json
I am using jquery star plugin and want to know how i can extend it so that it can take json and
generate select list for star rating. Now I can go
- $( 'rating' ).stars({
- inputType: "select",
- captionEl: $caption,
- callback: function( ui, type, value ){
- $.post( 'demo2.php", { rate: value}, function( data ){
- }
- }
- });
but i want to extend this to take json and generate all select list