Multiple input validation

var isValid = !$('input[name=neworg], input[name=newurl], input[name=newtracking]')
    .filter(function() {
        return !this.value;
    }).length;​

if (isValid){
    // Do what you want
}

For the query string you can use the jQuery serialize() function.

Leave a Comment