how to open form with facebox

55 views
Skip to first unread message

raymond esguerra

unread,
Mar 10, 2015, 12:33:42 PM3/10/15
to fac...@googlegroups.com
i currently have this script that submits my form when i select a date on my datepicker..
how do i open the link with facebox?
[code]
<script type="text/javascript">
$(document).ready(function()
{
  $('#dynamic').calendar(
  {
adapter: 'adapter.php',
onSelectDate: function(date, month, year)
{
if (this.isAvailable(date, month, year)) {
document.getElementById("date").value = date;
document.getElementById("month").value = month;
document.getElementById("year").value = year;
document.getElementById('test').submit();

},
  });
</script>

<form id="test" name="test" method="post" action="book_slot.php">
    <input type="hidden" name="date" id="date" value="">
    <input type="hidden" name="month" id="month" value="">
    <input type="hidden" name="year" id="year" value="">
</form>
[/code]
Reply all
Reply to author
Forward
0 new messages