Javascript/JQuery if statement

Posted by Samuurai on Stack Overflow See other posts from Stack Overflow or by Samuurai
Published on 2010-03-15T17:26:44Z Indexed on 2010/03/15 17:29 UTC
Read the original article Hit count: 246

Filed under:
|
|

This is probably pretty simple, but I can't figure out how to do it: I have this code:

$.post("/admin/contract", {
                          'mark_paid' : true,
                          'id' : id
        },

In pseudo code, how can I do this:

$.post("/admin/contract", {
                          'mark_paid' : true,
                          'id' : id,
                          if(is_set(dont_email)) {print 'dont_email' : true}
        },

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript