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
I find this a cleaner way of doing it:
var frm = $('#finalform [type!="hidden"]').serialize()