');
modelcount++;
$('.model-dropdown').change(function(){
var id = $(this).attr('id');
if($(this).val() == 'Other'){
$('#'+id+'other-box').html('
Enter your \'other\' model
');
}
else{
$('#'+id+'other-box').html('');
}
});
}
else{
alert('There is a maximum of 10 warranty items per form.');
}
});
$(function() {
$( "#pur_date" ).datepicker();
});
$('.model-dropdown').change(function(){
var id = $(this).attr('id');
if($(this).val() == 'Other'){
$('#'+id+'other-box').html('