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.
I saw this in jQuery tools in the tooltip script. What is <div/> ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
It used to create a
divelement. Its short cut to<div></div>.For example:
will create div with
id: hello,class: newwith htmlNew divand append to#target.DEMO
More details
It means "create a jQuery-wrapped div element on the fly".
As result it will look like:
For detail see here