Skip to content
This repository
Browse code

Merge pull request #1 from kidsil/patch-1

Adding changeable field name for the hidden input
  • Loading branch information...
commit 0d9b770f1ccf305664dd2c1852b47ce31b5673e6 2 parents 68cf826 + cf27977
Abrahm Coffman authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  bday-picker.js
3  bday-picker.js
@@ -30,6 +30,7 @@
30 30 "placeholder" : true,
31 31 "legend" : "",
32 32 "defaultDate" : false,
  33 + "fieldName" : "birthdate",
33 34 "hiddenDate" : true
34 35 };
35 36
@@ -71,7 +72,7 @@
71 72
72 73 // Create the hidden date markup
73 74 if(settings["hiddenDate"]) {
74   - $("<input type='hidden' name='birthdate' />").val(hiddenDate).appendTo($fieldset);
  75 + $("<input type='hidden' name='"+settings["fieldName"]+"' />").val(hiddenDate).appendTo($fieldset);
75 76 }
76 77
77 78 // Build the initial option sets

0 comments on commit 0d9b770

Please sign in to comment.
Something went wrong with that request. Please try again.