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

Ask A Question

Stats

  • Questions 272k
  • Answers 272k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The term "Yadis" can be a little murky because it's… May 13, 2026 at 1:54 pm
  • Editorial Team
    Editorial Team added an answer Why not just this: ICollectionView view = CollectionViewSource.GetDefaultView(newValue); IEqualityComparer<String> comparer… May 13, 2026 at 1:54 pm
  • Editorial Team
    Editorial Team added an answer you want jQuery's "live" functionality: $('select#assign_role').live('change',function(){ alert($(this).val()); }); also notice… May 13, 2026 at 1:54 pm

Related Questions

This syntax for some reason isn't working and I'm wondering why. When I alert
I'm working on writing a kernel, and I have a few friends working with
I'm working with a DotNetNuke menu - which may be irrelevant, since my question
I've run into a bit of a problem, which I simply cannot find a
So this thread is definitely NOT a thread for why Python is better than

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.