Hi there,

I tried to "reset" a file input element by using "val()".

<html>
        <head>
                <title>FooBar</title>
        </head>
        <script src="jquery.js"></script>
        <script>
                $(document).ready(function() {

                        $("#resetMe").click(function () {
                                $("#input1").val('');
                        });
                });
        </script>
        <body>

        <form name="foo">
                <input id="input1" type="file" name="foobar">
                <br><br>
                <input id="resetMe" type="button" value="ResetMe!">
        </form>

        </body>
</html>

This works fine for FF, but IE doesn´t (re)set the value.

Any hints?

TIA
ezod

Reply via email to