473,395 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

What is the meaning of the character(~) in jquery or css selector?

oranoos3000
107 100+
hi

would you please help me , what is meaning of the below jquery statement
Expand|Select|Wrap|Line Numbers
  1. $('~ span:first',this).text();
i dont understand meaning of the ~ in jquery selector


thanks very much for all your trouble
Nov 5 '10 #1
2 2707
Dormilich
8,658 Expert Mod 8TB
that’s the CSS3 selector for a (general) sibling (cf.)
Nov 5 '10 #2
JKing
1,206 Expert 1GB
~ is the next siblings selector. It will select all siblings matching the filter provided. In this case the filter is span:first.

Have a look at the jquery api docs for a more detailed explanation.

jquery api ~
Nov 5 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Zhang Weiwu | last post by:
Hello. I am working with a php software project, in it (www.egroupware.org) Chinese simplified locate is "zh" while Traditional Chinese "tw". I wish to send correct language attribute in http...
25
by: Tim & Alethea Larson | last post by:
In order to mark links leaving my site, I recently added this rule to my stylesheet. A:after { content: "\2197" } The character is a northeast-pointing arrow, since that seems to be fairly...
4
by: siliconmike | last post by:
All I know is that there are 8 bit numbers from 0 to 255 mapped to characters like A, B, C, D and some strange looking ones (like the ones used to make boxes in old PC text modes) all these being...
7
by: Art M | last post by:
I saved an html page the other day that encoded some punctuation with codes like â?T --> apostrophe (in case those characters don't show up in your news reader that's a_circumflex + euro +...
0
by: Kelly | last post by:
Hello What is the character control for new page in rtf Thank Kell
3
by: moltendorf | last post by:
I hope whoever here knows what I mean by selector, as in the CSS selector that is used to pick what XHTML elements the styles are applied to. CSS Code: hr.one {} hr.two {} hr.three {} hr.four...
3
by: mberkom | last post by:
I've got a jquery selector I'm trying to get done and since I'm somewhat new to jquery I'm stumped. Essentially. I'm trying to get a div within divs with the class "card" that do not have the class...
5
oranoos3000
by: oranoos3000 | last post by:
hi i read about bind jqeury method general syntax as follow as bind(eventType,data,listener) Establishes a function as the event handler for the specified event type on all elements in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.