From: iceangel89
To: "jQuery (English)"
Date: 07/24/2009 09:24 AM
sorry the code is
Link 1
Link 2
Link 2.1
Link 2.2
On Jul 24, 9:20 pm, iceangel89 wrote:
> with the markup like:
>
>
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 wrote:
> Hi,
>
> Perhaps your missing a space? $('this h1'),
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
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
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:
$(this).siblings('h1')
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 tr
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
invalid code
Dave Maharaj :: WidePixels.com wrote:
I am cleaning up some html code and
originally i had
Profile Settings
echo $preference['name'] . ', ';
endforeach; ?>
but the DIV inside the LI was too much so I
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"
wrote:
> I am cleaning up some html code and originally i had
>
>
>
>
> Profile Settings
>
>echo $preference['nam
t can be caused by
just 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
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 's will have to
ha
Sweet. Thanks, Kean!!
On Jan 18, 4:23 pm, Kean 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');
>
> if($$.is(':checked')) {
>
Oops, $checkbox.val(''); should be $text.val('');
On Jan 18, 1:23 pm, Kean 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 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';
$te
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
, second is
$row
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 + ']')
.e
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
You could maybe follow with not(). What are you trying to do?
On Tue, Jan 13, 2009 at 5:26 PM, km...@fensys.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?
>
yes it is
2008/11/26 Liam Potter <[EMAIL PROTECTED]>
>
> almost
>
> $('.link').click(function () {
>$(this).parent().BLAHBLAHBLAH();
> });
>
>
>
> Jason wrote:
>
>> Code:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> When a link is clicked, I would like to be able to reference the
>>
almost
$('.link').click(function () {
$(this).parent().BLAHBLAHBLAH();
});
Jason wrote:
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(fu
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:
>
> >
> >
> >
>
> >
> >
> >
>
> >
> >
> >
>
> > When a link is clicked, I would like to be able to reference the
> > part
On Tue, Nov 25, 2008 at 3:28 PM, Jason <[EMAIL PROTECTED]> wrote:
>
> 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(fu
$('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.
Cheer
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 j
did you try $(".child1 input[value=Gary]")?
On May 28, 11:51 am, andyGr <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> This is my DOM structure:
>
>
> First Name:
> value="John" />
>
>
> Middle Name:
>
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
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) {
> $(th
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
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);
> $("div#con
That can be made much simpler:
if ( $("div#sidebar2[div.plugin]").width(160).length )
$("div#content").css("marginRight", 170);
--John
On 7/28/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> Doug,
> This should work, but untested:
>
> if($("div#sidebar2").children(".plugin").size() != 0{
>
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 con
Unbinding the hover and dblclick events when the row is double clicked
works nicely.
Now I've got another question. The customer wants to use double click
for row selection instead of a single click. One side-affect of using
double click is that doing so will select and highlight the text 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, 1
On Jun 11, 12:06 am, Brad Perkins <[EMAIL PROTECTED]> wrote:
> 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 function
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
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 schrie
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,texta
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 th
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
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 PROTECTED]").s
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?
var params =
$('input,select,textarea').not("[EMAIL PROTECTED]").serialize();
2007/5/8, Brad Perkins <[EMAIL PROTECTED]>:
I currently have this?
var params = $('input,select,textarea').serialize();
Is there a simple way to serialize all inputs expect for radio buttons?
--
Rafael Santos
43 matches
Mail list logo