Wednesday, 24 October 2012

load js dynamicaly in jquery mobile

 $("#Registration").live("pageshow", function () {
            addfooter();

            $.getScript('xdate.js', function () { });

            $.getScript('mobipick.js', function () {
                $("#BirthDate").mobipick();
                picker.bind("change", function () {
                    //   formatted date, like yyyy-mm-dd             
                    var date = $(this).val();

                    //  JavaScript Date object
                    var dateObject = $(this).mobipick("option", "date");
                });
            });
        });

No comments:

Post a Comment