Try:

$('#input_id').focus(function(){
        $(this).attr("value","");
});

On Oct 12, 5:59 pm, captaincarp <harry.wi...@gmail.com> wrote:
> My image upload form has a choice of either upload image by entering url or
> by browsing for a file,
>
> I'm trying to empty the file-input input if you focus on the url-input.
>
> I've tried bother these events on click/blur  but neither seem to work like
> they would for a checkbox or text input...
>
> $('#input_id').empty();
> $('#input_id').attr('value', '');
>
> any ideas would be help my head!
> --
> View this message in 
> context:http://www.nabble.com/possible-to-empty-file-input-in-form-with-.clic...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to