Friday, 15 July 2011

How to save extended properties in jquery custom plugin? -



How to save extended properties in jquery custom plugin? -

(function ($, undefined) { $.fn.initfixedgrid = function (args) { }, $.fn.fixedgridsizechagned = function (args) { // here, have find out each of fixedcolumn number abc_grid01 , abc_grid02 } })(jquery); // phone call usages $("#abc_grid01").initfixedgrid( { fixedcolumn: 1 } ); $("#abc_grid02").initfixedgrid( { fixedcolumn: 2 } ); $("#abc_grid02").fixedgridsizechagned( { order: 0 } );

this custom jquery plugin structure.

when fixedgridsizechagned called, have number 2 fixedcolumn property.

how can save property , phone call later?

jquery plugins

No comments:

Post a Comment