Friday, 15 June 2012

jQuery slider not sliding -



jQuery slider not sliding -

here code in jsfiddle

i guess there wrong slide function:

slide: function( event, ui ) { var input = this.next(':input'); input.val(input.attr('alt') + ui.value); }

the .next() method jquery method need utilize in reference jquery object. wrap this within of jquery constructor.

slide: function (event, ui) { var input = $(this).next(':input'); input.val(input.attr('alt') + ui.value); }

jsfiddle

jquery jquery-slider

No comments:

Post a Comment