Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

namht1st's avatar

Datepicker for select days in a given month

Hi, i'm developing an web application for check student's attendance. I have a problem for create a datepicker for the Academic Administrator to select days in a given month. I don't know what tool i should use so can you guys show me how to do that. Thanks in advance

0 likes
2 replies
jlrdw's avatar
jlrdw
Best Answer
Level 75

Field to datepick make sure it has an id

<td><input type="text" name="transdate" id="transdatea" value="" size="14"></td>

code to date pick, put in an image to click on

$(document).ready(function () {

$("#transdate").datepicker({
            showOn: "button",
            buttonImage: "/checkbook/public/overcast/images/calendar19.gif",  // put in an image to click on
            buttonImageOnly: true,
            dateFormat: "yy-mm-dd",
            changeMonth: true,
            changeYear: true
        });
    });  

There are examples of this on the jquery ui site, with example source code also.

1 like
namht1st's avatar

@jlrdw Thanks you. That's not exactly what i need but i can figure out what i should do :D

Please or to participate in this conversation.