[jQuery] Re: Selector help needed

2009-07-24 Thread iceangel89
sorry the code is ul lia href=#Link 1/a/li li a href=#Link 2/a ul lia href=# class=activeLink 2.1/a/li lia href=#Link 2.2/a/li /ul /li /ul On Jul 24, 9:20 pm, iceangel89 iceange...@gmail.com wrote: with the markup like: prelt;ulgt;

[jQuery] Re: Selector help needed

2009-07-24 Thread Michael Lawson
Subject:[jQuery] Re: Selector help needed sorry the code is ul lia href=#Link 1/a/li li a href=#Link 2/a ul lia href=# class=activeLink 2.1/a/li

[jQuery] Re: Selector help

2009-07-19 Thread Shawn
that would still fail - unless he has a tag named this just like doing $(a) finds anchor tags. If however he is using this in terms of an event handler (where this is a reference to the DOM object that threw the event, then he would need to remove the quotes:

[jQuery] Re: Selector help

2009-07-19 Thread Charlie
absolutely right, and I know better, was far too late at night...thanks for the catch Shawn wrote: that would still fail - unless he has a tag named this just like doing $(a) finds anchor tags. If however he is using this in terms of an event handler (where this is a reference to the

[jQuery] Re: Selector help

2009-07-19 Thread Dhruva Sagar
Hi, Perhaps your missing a space? $('this h1'), or $('this ' + 'h1') What I don't understand is, why are you trying to concatenate two strings when you don't need to? Thanks Regards, Dhruva Sagar. On Sat, 2009-07-18 at

[jQuery] Re: Selector help

2009-07-19 Thread Ricardo
this is an object name, you want to pass the object itself and not a string, as others have already said: $(this).find('+ h1') or $('+ h1', this) or $(this).next('h1') http://docs.jquery.com/Selectors On Jul 19, 4:46 am, Dhruva Sagar dhruva.sa...@gmail.com wrote: Hi, Perhaps your missing a

[jQuery] Re: Selector help

2009-07-18 Thread Michael Lawson
Selectors are strings, including the special operators. So your select should look like this: 'this + h1'. What you have there just concatenates the two strings together making your selector 'thish1' cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393

[jQuery] Re: Selector help

2009-07-18 Thread Charlie
you can't use "this" in same manner as tagnames, ID's or class as a selector in combination with other selectors the way you are attempting. try: h1Height = $('this').siblings('h1').height(); Warfang wrote: I'm pretty new to _javascript_/ jQuery, so this is really bugging me. I'm

[jQuery] Re: Selector help

2009-06-04 Thread Stephen Sadowski
Unrelated to your issue, I would consider an effects queue. Just sayin' On Thu, 4 Jun 2009 15:17:24 -0230, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I am cleaning up some html code and originally i had li div class=loading id=loading_profile/div div id=profile dl

[jQuery] Re: Selector help

2009-06-04 Thread Charlie
invalid code div dl class="entry" Dave Maharaj :: WidePixels.com wrote: I am cleaning up some html code and originally i had li div class="loading" id="loading_profile"/div div id="profile" dl class="entry" dtProfile Settings/dt dd class="skills" ?php foreach

[jQuery] Re: Selector help needed

2009-04-28 Thread MorningZ
You'll have to build up the selector as a string when you call setTimeout, that function is run out of the context of being within that .each statement so you'll have to do something like (and there's many ways of doing this, i'll just show quick and easy), and yeah, the a's will have to

[jQuery] Re: Selector help needed

2009-04-28 Thread Jeffrey Kretz
such a closure. JK -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of MorningZ Sent: Tuesday, April 28, 2009 7:35 PM To: jQuery (English) Subject: [jQuery] Re: Selector help needed You'll have to build up the selector as a string when you

[jQuery] Re: Selector Help

2009-01-20 Thread LexHair
Sweet. Thanks, Kean!! On Jan 18, 4:23 pm, Kean shenan...@gmail.com wrote: This works and will take care of unchecked conditions too. $('table tr[id^=row] :checkbox').click(function(){         $$ = $(this);         $text = $$.parent().parent().find('.email, .contact');        

[jQuery] Re: Selector Help

2009-01-18 Thread MorningZ
This is untested and just off the top of my head $(table tr[id^='row']).each(function () { $(this).find(td checkbox).click(function() { if ($(this).is(:checked) == true) { var $row = $(this).parent().parent(); //first is td, second is tr

[jQuery] Re: Selector Help

2009-01-18 Thread Kean
This works and will take care of unchecked conditions too. $('table tr[id^=row] :checkbox').click(function(){ $$ = $(this); $text = $$.parent().parent().find('.email, .contact'); if($$.is(':checked')) { $text[0].value = 'Email Checked';

[jQuery] Re: Selector Help

2009-01-18 Thread Kean
Oops, $checkbox.val(''); should be $text.val(''); On Jan 18, 1:23 pm, Kean shenan...@gmail.com wrote: This works and will take care of unchecked conditions too. $('table tr[id^=row] :checkbox').click(function(){         $$ = $(this);         $text = $$.parent().parent().find('.email,

[jQuery] Re: Selector help

2009-01-14 Thread km...@fensys.com
I need to capture all links that navigate away from the current page. If a link points back to the current page, it is allowed to go through. If it navigates away, a popup needs to appear displaying certain information. I have two different strings that point pack to the current page. One is a

[jQuery] Re: Selector help

2009-01-14 Thread brian
I use this sometimes to have all outside links open in a new tab/window. $('a[href^=http]') .not('[href*=' + window.location.hostname + ']') .attr('target', '_new'); You could modify that: $('a[href^=http]') .not('[href*=' + window.location.hostname + ']')

[jQuery] Re: Selector help

2009-01-13 Thread brian
You could maybe follow with not(). What are you trying to do? On Tue, Jan 13, 2009 at 5:26 PM, km...@fensys.com seig...@gmail.com wrote: I'm using a attribute selector and I want to combine the *= with the ! = on href. Is there any way to do this?

[jQuery] Re: Selector Help

2008-11-26 Thread Liam Potter
almost $('.link').click(function () { $(this).parent().BLAHBLAHBLAH(); }); Jason wrote: Code: fieldset a href= class=link/a /fieldset fieldset a href= class=link/a /fieldset fieldset a href= class=link/a /fieldset When a link is clicked, I would like to be able to reference the

[jQuery] Re: Selector Help

2008-11-26 Thread 徐显峰
yes it is 2008/11/26 Liam Potter [EMAIL PROTECTED] almost $('.link').click(function () { $(this).parent().BLAHBLAHBLAH(); }); Jason wrote: Code: fieldset a href= class=link/a /fieldset fieldset a href= class=link/a /fieldset fieldset a href= class=link/a /fieldset

[jQuery] Re: Selector Help

2008-11-25 Thread Charlie Griefer
On Tue, Nov 25, 2008 at 3:28 PM, Jason [EMAIL PROTECTED] wrote: Code: fieldset a href= class=link/a /fieldset fieldset a href= class=link/a /fieldset fieldset a href= class=link/a /fieldset When a link is clicked, I would like to be able to reference the particular parent

[jQuery] Re: Selector Help

2008-11-25 Thread Jason
Excellent, thank you. On Nov 25, 4:24 pm, Charlie Griefer [EMAIL PROTECTED] wrote: On Tue, Nov 25, 2008 at 3:28 PM, Jason [EMAIL PROTECTED] wrote: Code: fieldset a href= class=link/a /fieldset fieldset a href= class=link/a /fieldset fieldset a href= class=link/a

[jQuery] Re: Selector help needed

2008-05-28 Thread PeterAce
did you try $(.child1 input[value=Gary])? On May 28, 11:51 am, andyGr [EMAIL PROTECTED] wrote: Hi All, This is my DOM structure:         tr class=child1                         td class=titleCellFirst Name:/td                         td class=fieldCellinput class=inputbox value=John

[jQuery] Re: Selector help needed

2008-05-28 Thread andyGr
I have fixed it as $j('tr.child1 td:eq(1) input') The only question is how to select ALL inputboxes valies of tr.child1. Now it selects only the 1st tr.child. Any ideas? -- View this message in context: http://www.nabble.com/Selector-help-needed-tp17508515s27240p17510366.html Sent from the

[jQuery] Re: Selector help needed

2008-05-28 Thread Ariel Flesler
$('tr.child1 input.inputbox') or just $('tr.child1 input:text') The last allows you to put aside the classes if you don't need them for something else. And actually, if you have no other inputs.. then you can remove the .inputbox / :text parts. You should add type=text to the inputs. Cheers

[jQuery] Re: selector help

2008-05-21 Thread Antonio Collins
Had to resort to 2 statements. Still not sure why the filter() didn't work as expected. $('TR[*/INPUT]',list).hide(); $('TR[*/[EMAIL PROTECTED]',list).show(); Antonio Collins wrote: My app has to present some rather lengthy list of choices. Each choice has a checkbox tied to it

[jQuery] Re: Selector help

2008-04-28 Thread Shawn
Eventually got this working: $(tbody tr, #crewSchedule).each( function (pos) { if ($(.taskSummary, this).length == 0) { $(this).toggle(); $(#scheduleOutput .fixedTable table tbody tr:eq( + pos + )).toggle(); } }); (the second .toggle() also hides the label for the current row,

[jQuery] Re: Selector help

2008-04-28 Thread Hamish Campbell
Hi hi, ':has' and ':not' are your friends: $('#containerDiv tr:not(:has(div.taskSummary))') On Apr 29, 1:26 pm, Shawn [EMAIL PROTECTED] wrote: Eventually got this working: $(tbody tr, #crewSchedule).each( function (pos) {    if ($(.taskSummary, this).length == 0) {      $(this).toggle();

[jQuery] Re: Selector help for new user please

2007-07-28 Thread Benjamin Sterling
Doug, This should work, but untested: if($(div#sidebar2).children(.plugin).size() != 0{ $(div#sidebar2).css('width',160); $(div#content)css('marginRight', 170); } On 7/28/07, duggoff [EMAIL PROTECTED] wrote: How would I turn this pseudocode into jquery? if div#sidebar2 contains

[jQuery] Re: Selector help for new user please

2007-07-28 Thread duggoff
Thanks! I had to change .children to .find, but then it worked great :) Doug On Jul 28, 1:51 pm, Benjamin Sterling [EMAIL PROTECTED] wrote: Doug, This should work, but untested: if($(div#sidebar2).children(.plugin).size() != 0{ $(div#sidebar2).css('width',160);

[jQuery] Re: Selector Help - hover and dblclick

2007-06-10 Thread R. Rajesh Jeba Anbiah
On Jun 11, 12:06 am, Brad Perkins [EMAIL PROTECTED] wrote: snip Ultimately, I'd also like to prevent the double clicked row from running code if previously double clicked. I suppose, you could do something like: if (this.done) return; and this.done=true; accordingly in the

[jQuery] Re: Selector Help - hover and dblclick

2007-06-10 Thread Brad Perkins
Thanks for the suggestion. I'll give that a try. While I was away I was thinking about this and realized another solution might be to unbind the hover and dblclick events from the row when it is double-clicked. On Jun 10, 1:49 pm, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: On Jun 11, 12:06

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

2007-05-08 Thread John Resig
Try this: var params = $(input,select,textarea).not(:radio).serialize(); On 5/8/07, Brad Perkins [EMAIL PROTECTED] wrote: I currently have this? var params = $('input,select,textarea').serialize(); Is there a simple way to serialize all inputs expect for radio buttons?

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

2007-05-08 Thread Karl Swedberg
You could also do this: var params = $(':input:not(:radio)', 'form').serialize(); :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 4:00 PM, Rafael Santos wrote: var params = $('input,select,textarea').not(input [EMAIL

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

2007-05-08 Thread Jörn Zaefferer
Karl Swedberg schrieb: You could also do this: var params = $(':input:not(:radio)', 'form').serialize(); What about this: var params = $('form :input:not(:radio)').serialize(); The extra context parameter isn't necessary. -- Jörn Zaefferer http://bassistance.de

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

2007-05-08 Thread Karl Swedberg
Ah yes! You're right (as usual). :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 4:54 PM, Jörn Zaefferer wrote: Karl Swedberg schrieb: You could also do this: var params = $(':input:not(:radio)', 'form').serialize(); What about

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

2007-05-08 Thread Brad Perkins
That does the trick! Thanks On May 8, 2:05 pm, John Resig [EMAIL PROTECTED] wrote: Try this: var params = $(input,select,textarea).not(:radio).serialize(); On 5/8/07, Brad Perkins [EMAIL PROTECTED] wrote: I currently have this? var params = $('input,select,textarea').serialize();

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

2007-05-08 Thread Brad Perkins
Thanks everyone! -- Brad On May 8, 2:54 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Ah yes! You're right (as usual). :) --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On May 8, 2007, at 4:54 PM, Jörn Zaefferer wrote: Karl Swedberg schrieb: You

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

2007-05-08 Thread Brad Perkins
Rafael, That is what I had in mind, but appears to filter out non-radio input fields. On May 8, 2:00 pm, Rafael Santos [EMAIL PROTECTED] wrote: var params = $('input,select,textarea').not([EMAIL PROTECTED]).serialize(); 2007/5/8, Brad Perkins [EMAIL PROTECTED]: I currently have this?