So, I have done tons of research and found tons of examples of how to make a TD cell clickable, BUT, I can't seem to manage to make any of them work for my own code... Perhaps the problem is in how I set up the table, I'm not sure as most examples that I have found don't actually show that part of it... Anyway, here's what I have...
Here's the Table and Form code...
echo '<form id="CalendarCell" action="calendar.php?eventaction" method="post">'; echo '<input type="hidden" id="SelectedTime" name="SelectedTime" value="'.$LoopTime.'" />'; echo '<td class="appointment"> </td>'; echo '</form>';
Here's one of the jQuery code snippets I have tried...
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script>
$("#CalendarTable").delegate("td", "click", function() {
$(this).find("form").submit();
});
</script>

New Topic/Question
Reply


MultiQuote



|