Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 233367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:05:42+00:00 2026-05-11T20:05:42+00:00

This syntax for some reason isn’t working and I’m wondering why. When I alert

  • 0

This syntax for some reason isn’t working and I’m wondering why. When I alert the values in the page, I can see everything but the textarea value. I’m not even getting an undefined.

var report  = $("textarea#report").val();

Here is my html:

<textarea id="report" name="report" rows="25" cols="10" style="width:100%;height:200px;"><?php echo $_POST['report']; ?></textarea>

<form id="rpt" action="">

I have this code that Paolo helped me with last week. This is the start of the jquery code which also has some editor code mixed in with it

$(document).ready(function()
{
  $('.error').hide();
  WYSIWYG.attach('dfarReport', rpt);
  WYSIWYG_Core.addEvent(window, "load", function()
  {
    $('#Save').removeAttr('onclick').click(function()
    {

I tried adding Jonathan’s suggested code to this but I get errors when I do this. I also changed “report” to something different just in case but that didn’t help either.

IT’S WORKING !!!!!!!!!!!!!!!!!!!!

To get this to work. I added the following:

$(document).ready(function()
{
  $('.error').hide();
  WYSIWYG.attach('dfarReport', dfar);
  WYSIWYG_Core.addEvent(window, "load", function()
  {
    $('#Save').removeAttr('onclick').click(function()
    {
      WYSIWYG.updateTextArea('dfarReport');   <-------------- This is where it needs to go
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:05:42+00:00Added an answer on May 11, 2026 at 8:05 pm

    EDIT

    var report  = $("textarea#report").val();
    

    should be working, however, if you’re referencing it by id, then you don’t need to use textarea as well

    var report  = $("#report").val();
    

    would be equivalent

    Also, Are you sure about the name. no typos?

    Edit

    with OpenWYSIWYG, use WYSIWYG.updateTextArea('report'); before calling the value via javascript

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across this line in some code and can't find the syntax defined
I can increment a FOR loop in xcode, but for some reason the reverse,
This is the json object: {Packet:{Response:Handshake,Code:lmhn,UID:4e1d137caaed7}} For some reason I am getting a syntax
Hey guys I'm getting a syntax error on my CONCATS for some reason, this
This is probably a really easy question to answer, but for some reason I'm
I've posted this on the D newsgroup some months ago, but for some reason,
This is probably stupid simple, but for some reason I'm having trouble getting it
This should be simple but is boggling me for some reason. I'm sure it's
For some reason I can't get the succinct flow control syntax to work with
I just came over this syntax in some of the questions in this forum,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.