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;
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
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:
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
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
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
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
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
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
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
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
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
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');
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
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';
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,
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
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 + ']')
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?
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
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
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
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
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
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
$('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
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
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,
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();
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
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);
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
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
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?
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
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
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
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();
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
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?
40 matches
Mail list logo