jQuery daterangepicker: executes alert twice? -


i want alert "ok" when change/make date. 2 alerts instead of one?

how can fix this?

here's code:

$(document).ready( function(){    $('#datepicking')        .daterangepicker({        arrows:true,        onchange: function(){            $('#viewer')            alert('ok');        }        });  }); 

here's working example: http://jsfiddle.net/bu5pj/2/

jquery 1.4.4, ui 1.8.5, + daterangepicker filamentgroup.com

by looks of documentation found here http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/

onchange: function, callback executes whenever date input changes (can happen twice on range selections).

when picked specific date got 1 alert box.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -