I have forms with inputs of hidden and visible like below.In this example I want to serialize only name=\'country\' which is not hidden
You can make a temporary copy of it and remove the hidden inputs from it before serializing :
var form = $("#finalform").clone(); $(form).find("input[type=hidden]").remove() var serialized = $(form).serializeArray();