tags:

views:

63

answers:

2

how to write the following code

$(function()
{ 
$('#datetime').datepicker({duration: '',showTime: true,constrainInput: false});
});

in javascript onclick() help me please Thanks

+3  A: 
$('#myBtn').click(function(){
$('#datetime').datepicker({duration: '',showTime: true,constrainInput: false});
})
Sorantis
Awesome; you beat me to it by 5 seconds!
Sean Vieira
+1  A: 
$("#youdbuttonid").bind("click", function(){
      $('#datetime').datepicker({duration: '',showTime: true,constrainInput: false});
});
rahul