[jQuery] jQuery Selector Help

2009-12-22 Thread Mike Walsh
Long time listner, first time caller ... I am struggling with a selctor and am hopeful someone can help me see the forest through the trees. I am using a WordPress plugin which generates the following HTML: td class=day-with-date span class=weekend26/span span class=eventbr / * span class=calnk

Re: [jQuery] jQuery Selector Help

2009-12-22 Thread Dhruva Sagar
I would suggest you to wrap the sections within * into a div and select that div. Thanks Regards, Dhruva Sagar. On Tue, Dec 22, 2009 at 6:29 PM, Mike Walsh mike_wa...@mindspring.comwrote: Long time listner, first time caller ... I am struggling with a selctor and am hopeful someone can

[jQuery] jQuery selector return parent

2009-10-21 Thread vtjiles
Is there anyway to write a custom filter which returns the parent nodes of the selector? ie) div.someClass:parentNode or ancestor: div.someClass would return the parent element of div.someClass. I know you can use .parent() in jQuery, but am using Selenium RC and am limited to using selector

[jQuery] jQuery selector performance / jQuery Tester

2009-07-02 Thread north
Hi, I just tested all my jQuery selectors using the jQuery Tester (http:// jquery.nodnod.net), and the results seem to contradict one thing I read in a performance article: that you should descend from the closest parent ID when using classes in your selector (the article says April 09, so the

[jQuery] jquery selector

2009-06-25 Thread vladush
hi, could anybody help me with jquery selectors? i have this code: div class=some-class div class=inside style=display: none; /div div class=some-class div class=inside style=display: none; /div ... on hover on each some-class element i want to set display: block; for div with inside

[jQuery] jquery selector trainer

2009-05-04 Thread ຄຳ
Hi all I made a jquery selector trainer. It's written using the jquery lib. http://lamp2.fhstp.ac.at/~lbz/beispiele/ss2009/jquery/ The problem I now have is that it is very slow and need Gigabytes of RAM for big examples using Firefox. Maybe someone has a hint to make it faster. Bernhard

[jQuery] jQuery Selector Help

2009-03-17 Thread side1021
Hi, Can some1 please explain this in detail to me? I am confused on the selector part $('li id=_img'+index+'/li'). // add list to ul var list = $('li id=_img'+index+'/li').attr ('class',_imageLoadClassName).appendTo('ul#'+_imgContainerId); Thanks!

[jQuery] JQuery Selector

2009-03-13 Thread rayglaser
This form of a selector is undocumented.. ('#%=x.y%').length What does it mean ? Thanks..

[jQuery] jQuery selector question - Having : in attribute name

2009-01-14 Thread naden
I'm using jQuery 1.2.6 and having an a element with the attribute ajax:id=46 a href=# ajax:id=46Test Link/a According to http://docs.jquery.com/Selectors/attributeEquals#attributevalue you have to escape : with double backslash like I did. alert( $( a[ajax\\:id='46'] ).attr( 'href' ) ); I

[jQuery] jQuery selector fails when in FOR loop

2008-12-12 Thread raskren
I have a set of divs that are created using jQuery. My script sets an ID for each div and appends a counter variable to this ID. For example, defName0, defName1, defName2, etc. Within the same for loop that generates the IDs I would also like to assign a jQuery function to the header. However,

[jQuery] JQuery selector-equiv for XPath position() predicate

2008-12-10 Thread RichB
I have a number of tables. I want to find all the columns in all the tables that have a heading th that matches a given string. Now, it's easy to find the heading with something like: $('th:contains(' + $(this).text() + ')') But how do I index from that to get the col to be able to style the

[jQuery] JQuery selector

2008-10-28 Thread [EMAIL PROTECTED]
Hi everyone, I have a question on JQuery selector. I want to add a class, last, into li elements where have !-- This is the one -- comment next to it under different ul but have the same class u. This is what I ended up with. However, it only selects li final two. $(.u

[jQuery] JQuery Selector and Java Script Variable

2008-10-13 Thread Shadi Almosri
Hiya, I've not been able to find an answer to this online! can someone point out the correct syntax for this: var myRel = $(this).attr(rel); var largePath = $('a[rel*=' + myRel +']').attr(href); Basicly the myRel gets set correctly, but how do i use the javascript variable as part of the

[jQuery] JQuery Selector and Java Script Variable

2008-10-13 Thread Shadi Almosri
Hiya, I've not been able to find an answer to this online! can someone point out the correct syntax for this: var myRel = $(this).attr(rel); var largePath = $('a[rel*=' + myRel +']').attr(href); Basicly the myRel gets set correctly, but how do i use the javascript variable as part of the

[jQuery] jQuery selector that matches dd's elements

2008-10-10 Thread Mauricio (Maujor) Samy Silva
Sample scenario: HTML dl dtText 1/dt ddtext 1.1/dd ddtext 1.2/dd ddtext 1.3/dd ddtext 1.4/dd dtText 2/dt ddtext 2.1/dd ddtext 2.2/dd ddtext 2.3/dd ddtext 2.4/dd ...more dt's dd's.. /dl

[jQuery] jQuery selector works with FF and not on IE

2008-08-29 Thread anuradha k
Hi All I am trying to do a simple jQuery, where in the selector fetches me all the empty fields in the form page. var inputFieldsArray = $(:input:not(:hidden)); // to get the fields that arent hidden for(var i=0; iinputFieldsArray.size(); i++){ var trClass = $

[jQuery] JQuery Selector

2008-04-09 Thread JB
I've got the following html div id=survey br / div class=sectionstart start /div div class=sectionstart start /div div class=sectionend end /div div class=sectionstart start

[jQuery] Jquery Selector even and first child (nested tables striping)

2008-03-31 Thread rsmolkin
Hi, I've ran into a little problem. I'm using the code below to do alternate row striping on a table. $('table.basic tr:even').addClass('even'); The problem is, one of the cells of this table contains another (nested) table. So the tr:even selector is getting messet up, and

[jQuery] jquery selector contains

2007-09-28 Thread 昆(cmd)
for example $(tr :contains('aaa')) is ok but how can i query for expression : or 1.$(tr :contains('aaa' | 'bbb' | 'ccc' )) 2.,, 3.+ + They are not right! I don't know how to write,thanks.

[jQuery] JQUERY SELECTOR based on image path

2007-05-03 Thread millionmonkey
Hi folks, This works - but I was wondering if there is a cleaner more jquery way to do the same thing? Perhpas there is a selector that I missed in the docs? $(function() { s = $(img).eq(0).attr(src) if (s.search(images/m)0) { $(img).eq(0).addClass(newimage) } }); tia, George