Skip to content

Instantly share code, notes, and snippets.

@zacechola
Created November 25, 2014 22:02
Show Gist options
  • Save zacechola/e81b681d66fe673452a3 to your computer and use it in GitHub Desktop.
Save zacechola/e81b681d66fe673452a3 to your computer and use it in GitHub Desktop.
date filtering two things
<!-- first form -->
<form role="form" novalidate>
<div class="form-group" id="startDates_other">
<label for="startDate" class="control-label">Start date</label>
<input type="date" class="form-control" name="startDate_other" placeholder="Start date" data-filter-type="date_other">
</div>
<div class="form-group" id="endDates">
<label for="endDate" class="control-label">End date</label>
<input type="date" class="form-control" name="endDate_other" placeholder="Start date" data-filter-type="date_other">
</div>
<button type="button" class="btn btn-default">Submit</button>
</form>
<!-- second form -->
<form role="form" novalidate>
<div class="form-group" id="startDates">
<label for="startDate" class="control-label">Start date</label>
<input type="date" class="form-control" name="startDate" placeholder="Start date" data-filter-type="date">
</div>
<div class="form-group" id="endDates">
<label for="endDate" class="control-label">End date</label>
<input type="date" class="form-control" name="endDate" placeholder="Start date" data-filter-type="date">
</div>
<button type="button" class="btn btn-default">Submit</button>
</form>
<td data-type="date">12/03/1994</td>
<td data-type="date_other">12/03/1994</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment