0

Im submitting my form and saving the data with an $.ajax $("#formName").serialize() post call.

My issue is that the placeholder text is submitted with the serialize() action.

I have a function that resets the placeholder value to "" in case placeholder == placeholder - however im not sure how to combine that with my ajax - serialize() - call.

Fiddle of my setup here

Any suggestions?

4

1 回答 1

0

使用必需的属性。只有在插入某些值时才会提交您的表单。IE <input type="text" id="inputEmail" placeholder="Email" name="fieldEmail" required="required">

于 2013-04-29T09:46:41.473 回答