Adding info to day numbers in jquery datepicker calendar -



Adding info to day numbers in jquery datepicker calendar -

i want add together additional info calendar in jquery datepicker. calendar comes showing month days listed in view of calendar. want add together number in parenthesis next day number. writing form scheduler , want show user how many events scheduled day using calendar.

i don't have sufficient privileges add together pictures post seek best demonstrate looking below.

regular datepicker calendar:

su m t w th f sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14

what looking for:

su m t w th f sa 1(2) 2(1) 3(1) 4(1) 5(1) 6(1) 7(8) 9(1) 10(2) 11(5) 12(4) 13(3) 14(6) 15(2) **the numbers in parenthesis () number of appointments scheduled day.**

i required info entered parenthesis mysql query. returns date , count. can format date match solution requires.

i had thought of creating variables named after specific date definition beingness count (ex. var 2012-1-30 = 1, var 2012-1-31 = 4). somehow have datepicker function add together definition when day matched variable date created. i'm not sure if there way add together datepicker function.

another solution tried , not work edit datepicker function add together class each day select each day jquery. illustration jan 30, 2012 had class looked [class="date_2012-1-30"]. manually select , edit days way using class (that how edited sec picture), not datepicker utilize info. tried beforeshow event in datepicker thinking have calendar edit text in matching classes before shown, did not work.

i wondering if had ideas on how accomplish looking for. again, trying add together number in parenthesis after day number in calendar in jquery datepicker.

thank help!

you can add together class day setting beforeshowday event,

$( "#datepicker" ).datepicker({ beforeshowday: function(date) { homecoming [true, 'date_' + date.gettime()]; } });

where dateday class added date , date day class added to.

http://jsfiddle.net/na9p5/

jquery calendar datepicker

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -