开发者

Cannot get the .val of the jHTML textarea?

I'm currently trying creating a form.

I have added a WYSIWG editor. The editor I used was the jHTML area.

When applying the WYSIWG editor to the textarea getting the value of the 开发者_JAVA百科textarea using the jQuery .val function does not return a value when ran in Firefox.

This process works in Google Chrome but not in Firefox.

The code I am currently using is:

$('form#AddPages').submit(function() {
alert($('#PageTextArea').val());
return false;
});
$(function() {
$('.Template_tbl tr td a').lightBox();
$(".txtDefaultHtmlArea").htmlarea(); // Initialize jHtmlArea's with all default     values
});

Any help would really be appreciated.

Thanks


you can try this: $('#PageTextArea').textarea.val()

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜