userCheckIn.js 663 B

1234567891011121314
  1. $(document).ready(function () {
  2. $("#htmlsubmit").mouseover(function () {
  3. var values = "{"
  4. $("input").each(function () {
  5. if ($(this).attr("type") == "text" || $(this).attr("type") == "number" || $(this).attr("type") == "email" || $(this).attr("type") == "date") {
  6. values = values + "'" + $(this).attr("name") + "': '" + $(this).val() + "', "
  7. }
  8. });
  9. values = values + "}";
  10. var localhost = window.location.protocol + "//" + window.location.host;
  11. var address = localhost + "/checkIn/user/success/?values=" + values;
  12. $("#htmlsubmit").attr("href", address);
  13. });
  14. });