Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/08/2013, 14:33
Avatar de adryan310
adryan310
 
Fecha de Ingreso: septiembre-2012
Mensajes: 450
Antigüedad: 11 años, 8 meses
Puntos: 3
Pregunta Respuesta: ¿Existe alguna manera de dar Reset a un form sin que salga esto?

Gracias por sus respuestas... !

Esta es mi funcion:
Código HTML:
<script language="javascript">
	  function formReset(){
	    $.fn.clearForm = function() {
		  return this.each(function() {
			var type = this.type, tag = this.tagName.toLowerCase();
			if (tag == 'form')
			  return $(':input',this).clearForm();
			if (type == 'text' || type == 'password' || tag == 'textarea')
			  this.value = '';
			else if (type == 'checkbox' || type == 'radio')
			  this.checked = false;
			else if (tag == 'select')
			  this.selectedIndex = -1;
		  });
		};
	  }
</script> 
Como y donde evito el evento con
Código:
preventDefault()