I would like to use the jquery jcalendar plugin. However, after selecting a date on the calendar, I would like to pass this value to a function in order to call an ajax event.

So far, my best guess at this is to make the text input field hidden and call this:

$("#cal_input > input[@type='text']").change( function() {
var cal_val= $("input").val()

$("#calOutput").load("feeds.php", {calval: cal_val}, function()

Is this syntax correct, and does it make sense? Any better idea on how to do this?