Cambio de atributo con jquery

by Carlos Quintero

HTML

<input type="text" class="fechas"/>

JavaScript

$(function(){
	$(".fechas").hover(function(){
  	$(this).attr('type','date');
  })
  $(".fechas").mouseleave(function(){
  	$(this).attr('type','text');
  })
  
})