I'm still new to jQuery and I ran into a small snag. How come the .click function won't work like this:
var $rowStartDate = $("span[id^=rowStartDate]");
var $rowEndDate = $("span[id^=rowEndDate]");
$($rowStartDate, $rowEndDate).click(function() {
//Notice the variables in this selector
However, it works when I move the elements out of their variables:
$("span[id^=rowStartDate], span[id^=rowEndDate]").click(function() {