<form>
<p>
<label for='start_date'>Start Date</label>
<input id='start_date' type='date'>
<i class='calendar'></i>
</p>
<p>
<label for='end_date'>End Date</label>
<input id='end_date' type='date'>
<i class='calendar'></i>
</p>
</form>
$(function(){
$('.calendar').click(function(){
showCalendarPopup();
});
});
$(function(){
$('.calendar').click(function(){
showCalendarPopup();
});
});
$(function(){
$('.calendar').click(function(){
showCalendarPopup();
});
});
$(function(){
$('.calendar').live('click', function(){
showCalendarPopup();
});
});
$(document).on('click', '[data-calendar]', function(){
showCalendarPopup();
});
$(document).on('click', '[data-calendar]', function(){
showCalendarPopup();
});
<form>
<p>
<label for='start_date'>Start Date</label>
<input id='start_date' type='date'>
<i class='calendar' data-calendar></i>
</p>
<p>
<label for='end_date'>End Date</label>
<input id='end_date' type='date'>
<i class='calendar' data-calendar></i>
</p>
</form>
$(document).on('click', '[data-calendar]', function(){
showCalendarPopup();
});