od rana się męcze i jeszcze za głupi jestem... chce sobie zrobić strone swoją, trochę tam znam html i css. ale raczej sciagam gotowe darmowe skrypty i staram się dostosowac do moich potrzeb.
I mam taki skrypt który wysyła formularz, ale nie potrafię go zresetować...
Jeśli by ktoś mógł pomóc byłbym wdzięczny...
<script type="text/javascript"> document.contactform.browser_check.value = "true"; $("#submit").click(function(){ $('#result').html('<img src="loader.gif" class="loading-img" alt="">').fadeIn(); var input_data = $('#form').serialize(); $.ajax({ type: "POST", data: input_data, success: function(msg){ $('.loading-img').remove(); //Removing the loader image because the validation is finished $('<div class="message">').html(msg).appendTo('div#result').hide().fadeIn('slow'); //Appending the output of the php validation in the html div document.contactform.dept.selectedIndex='0'; document.contactform.name.value=''; document.contactform.email.value=''; document.contactform.phno.value=''; document.contactform.subject.value=''; document.contactform.human_test.value=''; document.contactform.msg.value=''; } } }); return false; }); </script>