When using serializeArray()
for a form with empty fields it returns ""
for all those fields. What is the best way to omit those empty fields from the Array besides iterating over the Array and deleting them one by one?
When using serializeArray()
for a form with empty fields it returns ""
for all those fields. What is the best way to omit those empty fields from the Array besides iterating over the Array and deleting them one by one?