开发者

jQuery's wysiwyg validation problem

开发者 https://www.devze.com 2022-12-20 00:31 出处:网络
I am using jQuery\'s wysiwyg plugin on one of the pages. When the form get\'s posted I have checked if there is some conte开发者_开发技巧nt present in the editor. If the editor is blan then I have sho

I am using jQuery's wysiwyg plugin on one of the pages. When the form get's posted I have checked if there is some conte开发者_开发技巧nt present in the editor. If the editor is blan then I have shown the message to enter some content in the wysiwyg editor. However this validation is not getting applied since when I alert the value of wysiwyg edior it shows me "<P></P>" or "<P>&nbsp;</P>" so the condition to check the balnk value of editor ($("#wysiwyg").val() == "") is not getting applied.

Even if the "<P></P>" or "<P>&nbsp;</P>" content is replaced then also it giving different results in Mozilla & IE7.


There seems to be a getContent() method avalaible, can you try that one?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号