Show jQuery date picker in jQuerymodal dialog -


there seems problem showing datepicker in modal dialog.

i'm using:

    $(".dpicker").datepicker({         numberofmonths: 2,         dateformat: 'd m yy',         showbuttonpanel: true     }); 

to enable datepicker on given input field.

please check fiddle:

http://jsfiddle.net/ozjyu9k5/3/

it's working except while rendered in modal dialog.

any suggestions make datepicker working in dialog?

please don't mark duplicate searched entire internet working solution , none of them seems working.

why not use popup this one. can see full api here on official api page.

it this:

datepicker

when click in input field show dialog this

datepicker open

your code this:

<!doctype html> <html lang="en"> <head>   <meta charset="utf-8">   <title>jquery ui datepicker - default functionality</title>   <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">   <script src="//code.jquery.com/jquery-1.10.2.js"></script>   <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>   <link rel="stylesheet" href="/resources/demos/style.css">   <script>   $(function() {     $( "#datepicker" ).datepicker();   });   </script> </head> <body>  <p>date: <input type="text" id="datepicker"></p>   </body> </html> 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -