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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:48:32+00:00 2026-06-05T12:48:32+00:00

I saw this in jQuery tools in the tooltip script. What is <div/> ?

  • 0

I saw this in jQuery tools in the tooltip script. What is <div/> ? I’ve never seen the backslash used that way. Probably going to get some down votes, but I must know.

  • 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-05T12:48:33+00:00Added an answer on June 5, 2026 at 12:48 pm

    It used to create a div element. Its short cut to <div></div>.

    For example:

    $('<div/>', {id: 'hello', 'class': 'new', html: 'New div'}).appendTo('#target');
    

    will create div with id: hello, class: new with html New div and append to #target.

    DEMO

    More details

    It means "create a jQuery-wrapped div element on the fly".

    When the parameter has a single tag, such as $('<div />') or
    $('<a></a>'), jQuery creates the element using the native JavaScript
    createElement() function.

    As result it will look like:

    $(document.createElement("div"));
    

    For detail see here

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

Sidebar

Related Questions

I saw this in a part that never gets called in a coworker's code:
I just saw a demo that had this jquery code to show and hide
I saw this piece of code in jQuery's source. I am a novice in
I just saw this cool feature of JQuery which is JQuery Portlet http://jqueryui.com/demos/sortable/portlets.html I
I saw this beautiful script to add thousands separator to js numbers: function thousandSeparator(n,
I saw this C# using statement in a code example: using StringFormat=System.Drawing.StringFormat; What's that
I recently saw this code on another post ( jQuery Set Cursor Position in
I was looking at the 14 days of jquery http://jquery14.com/day-01/jquery-14 and I saw this
I saw this: $(div).children().andSelf().contents().each(function(){ if (this.nodeType == 3) { var $this = $(this); $this.replaceWith($this.text().replace(/(\w)/g,
I've seen jquery used to change a form select drop down box in to

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.