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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:32:19+00:00 2026-06-14T06:32:19+00:00

I have no knowledge in jquery. can some body guide me what the below

  • 0

I have no knowledge in jquery. can some body guide me what the below code does. I googled it but no result found. I want to add some HTML Contents inside the div whose class is
‘p-notification’. How to do this?

 this.notification = $('<div/>', {
            'class': 'p-notification'
 });
 this.content = $('<div/>', {
        'class': $elem.attr("hasFooter") === "true" ? 'p-content with-p-footer' : 'well',
        'style': $elem.attr("paddless") === "true" ? 'padding:0;' : '',     
        'text': 'Loading'
 });
  • 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-14T06:32:20+00:00Added an answer on June 14, 2026 at 6:32 am

    The following part adds or sets the notification property on the scope to be a newly created div element with class p-notification:

     this.notification = $('<div/>', {
                'class': 'p-notification'
     });
    

    The next part adds or sets the content property on the scope to be a newly created div element with several attributes being preset: class, style, and text:

     this.content = $('<div/>', {
            'class': $elem.attr("hasFooter") === "true" ? 'p-content with-p-footer' : 'well',
            'style': $elem.attr("paddless") === "true" ? 'padding:0;' : '',     
            'text': 'Loading'
     });
    

    By itself this will have no net effect on the DOM, since you have created elements but not inserted them into the document. You can insert them by using one of several methods provided by jQuery, eg append:

    $('#somediv').append(this.content);//adds the div that was created to an element with id somediv
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have some knowledge of css,jQuery,Grails,django,servlets and jsp still i can't see me designing
I'm new to PHP programming and have poor knowledge about it, but I want
I do not have enough knowledge in JQuery to figure out, where in this
I am an Android Developer and don't have any knowledge about JScript/Jquery/Phonegap etc. I
I have a fair knowledge about Javascript, I started with jQuery 1.4 a week
I have some knowledge about Human computer interaction and some basic knowledge programming scripts
I wants to have some knowledge about how database management software is implemented. Is
I guess its just due to my lake of jquery knowledge but ill lay
jQuery and JavaScript can manipulate DOM like anything. But if C# has to send
I have fair knowledge of Android and sometimes had played with Jquery. Now I

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.