jquery submit form from text link

I’m trying to create a small form that submits a form and passes a value from a text link.. Here’s what I’ve got so far..

You could do it like this:

jQuery('.submitCal').click(function () {
  var timeVar = jQuery("<input type='hidden' name='time'/>");
  return false;

This will create a hidden form element inside your form, with the value of your href attribute

Leave a comment