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 7856343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:40:38+00:00 2026-06-02T20:40:38+00:00

$(#note_content).dialog({ title: Note, modal: true, width:’auto’, height:’auto’, resizable:false, open: function(){ var note_text = $(‘#note_content’).attr(‘note_text’);

  • 0
$("#note_content").dialog({
            title: "Note",
            modal: true,
            width:'auto',
            height:'auto',
            resizable:false,

            open: function(){
                var note_text = $('#note_content').attr('note_text');
     }
}

In my code I am trying set note_text as content of dialog, any idea how could I do this?

  • 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-06-02T20:40:40+00:00Added an answer on June 2, 2026 at 8:40 pm

    You should have a content place holder inside your dialog, for example:

    <div id="noteContent" title="Basic dialog">
       <p id="contentholder"> This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
    </div>
    
    $("#note_content").dialog({
        title: "Note",
        modal: true,
        width:'auto',
        height:'auto',
        resizable:false,
    
        open: function(){
            var note_text = $('#note_content').attr('note_text');
           $("#contentholder").val(note_text)
        }
    }
    

    You had your note_text assigned to a variable in this line:

    var note_text = $('#note_content').attr('note_text');
    

    However, you didn’t assign the note_text variable to the placeholder.

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

Sidebar

Related Questions

I'm using this dialog: http://docs.jquery.com/UI/Dialog To open dialog I do it this way: $('a.openModal').live(click,
More jQuery Tools overlay fun... I have a yes/no jQT modal dialog set up
If you open a dialog when a dialog is already displayed then, by default,
For example, if I have this: $('#button').click(function() { $.get('/question', function(data) { $('#question').html(data); $('#question').dialog( ...
I have an overflow div which is on a jquery modal dialog. <div style=overflow:
Here is my webview (without content) on Galaxy Note: https://i.stack.imgur.com/YebnZ.png I can't find how
I'm loading in some HTML content like this: $('#scores').load('scores.php #scores'); Note that It is
I have a model class like this: class Note(models.Model): author = models.ForeignKey(User, related_name='notes') content
Note: Although my particular context is Objective-C, my question actually transcends programming language choice.
Note: See the bottom of this post for an explanation for why this wasn't

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.