$.fn.formreg=function(options){
options = $.extend({}, $.fn.formreg.defaults, options);
return this.each(function() {
var $this = $(this) ;
});
};
$.fn.formreg.defaults={
stepWidths:0,
sliding_time:200,
step_opacity:0.8,
'step_id':'steps',
nav_id:'navigation'
}
これは、プラグインを使用してオプション値を渡す方法です。
$('#formElem').formreg({
sliding_time:900, //sliding time
step_opacity:0.2, // FieldSet alpha effect when sliding , 1 means 100%
step_id:'steps2', // Id of the sliding main container ..
nav_id:'navigation2', // Id of navigation bottom buttons..
});
問題は、送信された vaule が何であれ、値が決して変わらないことです