Removing empty Input Elements from a form

后端 未结 4 1108
梦如初夏
梦如初夏 2021-01-14 21:20

I have a simple form that goes on to create all the form and validation requirements for codeigniter. What I want to do is filter out any empty inputs prior to serializatio

4条回答
  •  执笔经年
    2021-01-14 21:58

    You should use a regex expression using \s as the search query. So /^(\s)*$/ as the regex and just make sure input does not match this.

    Sorry but I am not familiar with Jquery or I would write the code out exactly.

提交回复
热议问题