Could you please rephrase the question, although I think you maybe
looking for something like this:

JavaScript:
$("#edit_upload").click(function(){
    if($("#edit_field").val() != 0) {
        $("form").submit();
    }
});

HTML:
<form action="submit.php" method="get">
<input type="text" id="edit_field" name="edit_field"/>
</form>
<p>Click <span id="edit_upload">here</span>.</p>

- jake

On 3/29/07, Mario Moura <[EMAIL PROTECTED]> wrote:
> Hi I am trying simple things yet, so
>
> So If a field have a value click in upload button, How can I do that?
>
> I am trying something like that
>
> if ($("#edit-field-image01-upload").val() > 0)
> $(edit-upload).submit();
>
> macm
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to