开发者

Cannot get the .val of the jHTML textarea?

开发者 https://www.devze.com 2023-03-17 18:28 出处:网络
I\'m currently trying creating a form. I have added a WYSIWG editor. The editor I used was the jHTML area.

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

精彩评论

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