This project is archived and is in readonly mode.

#751 ✓invalid
artz

need help i can't reset on field in form

Reported by artz | September 18th, 2009 @ 05:04 AM | in 2.0 (closed)

hello
i have a probleme with mootools i can't reset a specific field after sending
i know there are a function ( reset()) but this one reset all fields

thk's
this is my code :

window.addEvent('domready', function() {

        $('ajout-episode').addEvent('submit', function(e) {

            new Event(e).stop();

            var log1 = $('log_res1').empty().addClass('ajax-loading');

            this.send({
                update: log1,

                onComplete: function() {
                    log1.removeClass('ajax-loading');
                    $('ajout-episode').reset();
                    <--! I NEED RIGHT THERE   TO RESET  ONE FIELD    ;)-->
                }
            });
        });

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages