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 wrote: > Long time listner, first time caller ... > > I am struggling with a selctor and am hopeful someone can help me see > the fores

[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: 26 * Christmas Break Christmas Break * http://localhost/?p=104"; style=""> Futsal T

[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 func

[jQuery] jQuery selector for style attribute

2009-08-25 Thread John
Hi, I want to select the following image using jQuery selector to see if I could use the style attribute, but seems the selector img[style=overflow: auto; width: 356px; height: 100px;] does not work at all. What would be the correct selector for the style attribute? Thanks in advance, John

[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 th

[jQuery] jquery selector

2009-06-25 Thread vladush
hi, could anybody help me with jquery selectors? i have this code: ... on hover on each "some-class" element i want to set "display: block;" for div with "inside" class, but only on div which is child of actually hovered element. is it possible do something like this?

[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 $(''). // add list to ul var list = $('').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 element with the attribute ajax:id="46" Test Link 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 tried a lot, but it'

[jQuery] jQuery selector fails when in FOR loop

2008-12-12 Thread raskren
I have a set of s that are created using jQuery. My script sets an ID for each 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, it see

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

2008-12-10 Thread RichB
I have a number of s. I want to find all the columns in all the tables that have a heading 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 to be able to style the column? And r

[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 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 > li:last-child").addClass("last");

[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 jq

[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 jq

[jQuery] jQuery selector that matches dd's elements

2008-10-10 Thread Mauricio (Maujor) Samy Silva
Sample scenario: HTML Text 1 text 1.1 text 1.2 text 1.3 text 1.4 Text 2 text 2.1 text 2.2 text 2.3 text 2.4 ...more dt's dd's.. -- jQuery script: ... $('dt').clic

[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; i

[jQuery] JQuery Selector

2008-04-09 Thread JB
I've got the following html start start end start end start 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 is

[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