[jQuery] Re: jQuery Selector Help

2009-12-23 Thread Mike Walsh
[ ... snipped ... ] > > ... and after looking at your code (which always helps), I see you're > referencing "this" (as opposed to jQuery's $(this)), which is why html() > wouldn't have worked. > > In that case, sure.  It's been said that "this" is more efficient than > creating a jQuery reference

Re: [jQuery] Re: jQuery Selector Help

2009-12-22 Thread Charlie Griefer
On Tue, Dec 22, 2009 at 10:40 AM, Charlie Griefer wrote: > On Tue, Dec 22, 2009 at 10:34 AM, Mike Walsh wrote: > >> >> [ ... snipped ... ] >> >> Thanks for pointing me in the right direction. This is what I ended >> up getting to work: >> >>jQuery("span.event", ".calendar-table").eac

Re: [jQuery] Re: jQuery Selector Help

2009-12-22 Thread Charlie Griefer
On Tue, Dec 22, 2009 at 10:34 AM, Mike Walsh wrote: > > [ ... snipped ... ] > > Thanks for pointing me in the right direction. This is what I ended > up getting to work: > >jQuery("span.event", ".calendar-table").each(function(){ >var html = this.innerHTML.replace(/()\

[jQuery] Re: jQuery Selector Help

2009-12-22 Thread Mike Walsh
On Dec 22, 12:09 pm, Charlie Griefer wrote: > 2009/12/22 Šime Vidas > > > Well, you selected BR elements, which are empty elements, so it's no > > mystery why this.innerHTML returns undefined... > > > Also, DIVs shouldn't appear inside SPANs... > > He did state that he's using generated HTML.  

Re: [jQuery] Re: jQuery Selector Help

2009-12-22 Thread Charlie Griefer
2009/12/22 Šime Vidas > Well, you selected BR elements, which are empty elements, so it's no > mystery why this.innerHTML returns undefined... > > Also, DIVs shouldn't appear inside SPANs... > He did state that he's using generated HTML. He has no control over it. Mike - this isn't really a jQ

[jQuery] Re: jQuery Selector Help

2009-12-22 Thread Šime Vidas
Well, you selected BR elements, which are empty elements, so it's no mystery why this.innerHTML returns undefined... Also, DIVs shouldn't appear inside SPANs...

[jQuery] Re: jQuery Selector Help

2009-12-22 Thread Mike Walsh
On Dec 22, 8:03 am, Dhruva Sagar wrote: > I would suggest you to wrap the sections within * into a div and select that > div. > > Thanks & Regards, > Dhruva Sagar. > [ ... snipped ... ] Unfortunately I don't have control of the generated content. The content is generated by a WordPress Calend

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

RE: [jQuery] Selector Help

2009-11-30 Thread Rick Faircloth
Good, practical formatting for understand “the chain”… From: Michael Geary [mailto:m...@mg.to] Sent: Monday, November 30, 2009 3:28 AM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Selector Help That's a nice solution. Let's make it easier to follow with some i

Re: [jQuery] Selector Help

2009-11-30 Thread Michael Geary
{ >> $(this).parent().siblings('li').removeClass('active'); >> $(this).parent('li').addClass('active'); >> }); >> >> Maurício >> >> -Mensagem Original- >> *De:* Charlie >> *Para:* jquery-en@googlegroups.com >> *Enviada em:* domingo, 29 de novembro de 2009 03:56 >> *Assunto:* Re: [jQuery] Selector Help >> ... >> >> Dave Maharaj :: WidePixels.com wrote: >> How would I go about adding class to the li in this set up? >> all >> some >> none >> >> ... >> >> >> >> >

Re: [jQuery] Selector Help

2009-11-29 Thread Michel Belleville
7;a.filter').click(function(){ > $(this).parent().siblings('li').removeClass('active'); > $(this).parent('li').addClass('active'); > }); > > Maurício > > -Mensagem Original----- > *De:* Charlie > *Para:* jquery-

Re: [jQuery] Selector Help

2009-11-29 Thread Mauricio (Maujor) Samy Silva
Enviada em: domingo, 29 de novembro de 2009 03:56 Assunto: Re: [jQuery] Selector Help ... Dave Maharaj :: WidePixels.com wrote: How would I go about adding class to the li in this set up? all some none ...

Re: [jQuery] Selector Help

2009-11-28 Thread Charlie
$('a.filter').click(function(){     $(this).parent().addClass('active'); }); Dave Maharaj :: WidePixels.com wrote: How would I go about adding class to the li in this set up? all some none $('a.filter').click(function(){ $(???).addClass('active'); }); Thanks Dave

[jQuery] Selector Help

2009-11-28 Thread Dave Maharaj :: WidePixels.com
How would I go about adding class to the li in this set up? all some none $('a.filter').click(function(){ $(???).addClass('active'); }); Thanks Dave

[jQuery] Selector help needed

2009-07-24 Thread iceangel89
with the markup like: i want to add a class "active" to , Link

[jQuery] Selector help

2009-07-18 Thread Warfang
I'm pretty new to Javascript/ jQuery, so this is really bugging me. I'm trying to get the height of an h1 that is a sibling to this. The value for the variable h1Height, however, returned as null in the console in Firebug. Perplexed, I tried console.logging ('this'+'+h1') to see what it was inter

[jQuery] Selector help

2009-06-04 Thread Dave Maharaj :: WidePixels.com
I am cleaning up some html code and originally i had Profile Settings but the DIV inside the LI was too much so I went with adding the id="profile to but script is no longer working Profile Settings

[jQuery] Selector help needed

2009-04-28 Thread Warfang
Here's my code: $(document).ready(function(){ $('#menulinks a').hover(function(){ setTimeout(function(){ $(this).stop().animate({ top : '40px', paddingTop : '40px'

[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] Selector Help

2009-01-18 Thread LexHair
I have a table structure with a multiple rows containing a checkbox input and 4 text inputs with distinct classes. I want to prefill two of the text inputs in the same row where the checkbox is checked. Example code for the first two rows: I nee

[jQuery] Selector help

2009-01-13 Thread km...@fensys.com
I'm using a attribute selector and I want to combine the *= with the ! = on href. Is there any way to do this?

[jQuery] Selector Help

2008-11-25 Thread Jason
Code: When a link is clicked, I would like to be able to reference the particular parent fieldset element, and not all of them. Something like this doesn't work: $('.link').click(function () { $(this+':parent').BLAHBLAHBLAH(); }); Thanks in advance, the help here is top not

[jQuery] Selector help needed

2008-05-28 Thread andyGr
Hi All, This is my DOM structure: First Name: Middle Name: First Name:

[jQuery] selector help

2008-05-21 Thread Antonio Collins
My app has to present some rather lengthy list of choices. Each choice has a checkbox tied to it and multiple choices can be made. When 'editting' the choices, we want to see all available choices, but after editting is done, we only want to see what was selected. I'm stuck coming up with the

[jQuery] Selector help

2008-04-28 Thread Shawn
I'm either making this more difficult than it is, or I'm missing something simple... I have a div that contains a table. Inside that table I have rows with an arbitrary number of cells. The cells may or may not contain a div with a "tasksummary" class. I need to find all the rows that DO

[jQuery] Selector help for new user please

2007-07-28 Thread duggoff
How would I turn this pseudocode into jquery? if div#sidebar2 contains div.plugin { div#sidebar2 width = 160px div#content margin-right = 170px } I've been at this for a couple hours and I can't figure it out, so any help is really appreciated. Thanks, Doug

[jQuery] Selector Help - hover and dblclick

2007-06-10 Thread Brad Perkins
In a table like this: Item One Two Three I want to highlight the rows when hovered. I also wan't to set a different background color on the row when double clicked. I have the following jquery code: $(document).ready( function() { $("[EMAIL PRO

[jQuery] Selector help - All inputs except radio buttons?

2007-05-08 Thread Brad Perkins
I currently have this? var params = $('input,select,textarea').serialize(); Is there a simple way to serialize all inputs expect for radio buttons?