little help to add datepicker with php textpox

hi every one
i am try to include jquery datepicker in simply php page … sorry but rely i am barely know nothing about the language of php. i try to follow the steps put did not Succeed.
i fined the datepicker calender in this page keith-wood.name/calendarspicker.html with method how to apply it in page, but there is one steep “nomber 4” not clear"look it down red line". plz illustrative simple example of me.

look it the code plz:

[php]<?php include ?>

<?php include ?> <?php include ?> <?php include ?> <?php include ?> <?php include ?> <?php ?> <?php echo " "; ?[/php] what is the wrong hear ? Steps presented by the author here: 1- Include the jQuery library in the head section of your page. [php][/php] 2-Download and include the base jQuery Calendars JavaScript in the head section of your page. [php] [/php] 3-Download and include the jQuery Calendars Datepicker CSS and JavaScript in the head section of your page. [php] [/php] [b]4-Connect the calendar functionality to your input field or division/span. [php]$(selector).calendarsPicker();[/php][/b] Note:i Attach all JS and CSS files within a folder page.

You shouldn’t be using PHP to do what you are doing. Remove all php stuff and set this up as a normal html file.

JimL i do it put steel not work plez can u explain me this line

4-Connect the calendar functionality to your input field or division/span.
$(selector).calendarsPicker();

how can i Connect the calendar functionality to input field??? :-\

Show the code you have now :slight_smile:

You should have had it right before, you just didn’t need the php stuff.

Basically you have the input field with an id, then you select this field using jquery and attach the datepicker to it. You had all of that before, something might have gone missing when rewriting it though.

the code :

[code]

[/code] i think the wrong in the function. is it ?

You say that UmmAlQuraCalendar should be added to element with id “d1”.

The element you have is called “a1”, and if you use the normal jquery calendar picker plugin (as you have in the included js files) then you need to use the correct function name

$("#a1").datepicker();

you are right Mr.JimL let me see :wink: thinks lot of.

Sponsor our Newsletter | Privacy Policy | Terms of Service