Bootstrap 3:为textarea验证wysihtml5编辑器

时间:2014-03-11 11:00:03

标签: twitter-bootstrap twitter-bootstrap-3 wysiwyg

使用bootstrap验证程序验证表单。在那里,我为textarea字段添加了wysiwyg编辑器(https://github.com/Waxolunist/bootstrap3-wysihtml5-bower)。

我需要将textarea验证为必填字段。我可以使用 $('。textarea')获取textarea的值.val();

CODE:     

我们可以在wysiwyg编辑器上执行任何其他验证吗?

1 个答案:

答案 0 :(得分:1)

我用过

ignore: ":hidden:not(textarea)",

并且它正常工作,只需将required类添加到textarea。

相关问题