How can I pick an id element (here #bridge1,#bridge2) and toggle its
child (here a p element) without actually using the id element as
parent?
'this > p' apparently does not work.
$('#bridge1,#bridge2').click(function(){
$('this > p').toggle();
return false;
});
Thanks for your h
Hi,
Im trying to select all spans in divs containing forms that dont have
a certain id
$("div:not([id='#'+pid]) form span").css("background-color",
"yellow");
This selects all spans regardless of the ID.. Any suggestions
would be great!
Thanks in advance...
This has probably been asked several times on the list but I'm having
trouble finding a resolution.
I have a simple problem where I dynamically add html to a div when the
user clicks a link based on an event handler, which works fine.
However, I am further trying to bind events to a couple of but
Just investigated it:
http://dev.jquery.com/ticket/3729
The colon is valid I think, but it's true, there are some
restrictions.
On Jan 14, 2:27 pm, naden wrote:
> That sucks. jQuery has no problem with $( 'a' ).attr( 'ajax:id' );
> Therefore it would be nice to use it in the selector too.
>
> t
That sucks. jQuery has no problem with $( 'a' ).attr( 'ajax:id' );
Therefore it would be nice to use it in the selector too.
thanks anyway have to change it.
On 14 Jan., 14:05, "jQuery Lover" wrote:
> Slightly :)
>
> You can not have special character in your html ATTRIBUTES.
>
> You should ren
Slightly :)
You can not have special character in your html ATTRIBUTES.
You should rename "ajax:id" to something else. Ex: ajax_id or ajaxId.
-
Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Wed, Jan 14, 2009 at 5:16 PM, naden wrote:
>
> Your right. The docs
Your right. The docs said:
"Note: if you wish to use any of the meta-characters described above
as a literal part of a name, you must escape the character with two
backslashes (\). For example:
#foo\\:bar
#foo\\[bar\\]
#foo\\.bar"
and so I did. I used \\: to escape the ":"
or I'm gettin you wr
You can not have special character in attribute names. (it's not valid markup)
Documentation is saying that your should escape VALUE bit if it
contains special characters.
-
Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Wed, Jan 14, 2009 at 2:11 PM, naden wro
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'
I'm fairly new to the framework and I've been messing around a bit.
These below confuses me.
1. Why is this snippet not working? Firefox's error console throws
an error saying < $("button")[0].bind is not a function >
$("button")[0].bind("click", function(event){alert(this)});
2. And why do
Why does this work?
$($("button")[0]).bind("click", function(event){return AlertOnClick
(this + " not " + $("button")[0]);});
And why does this DOESN'T?
$("button")[0].bind("click", function(event){return AlertOnClick(this
+ " not " + $("button")[0]);});
hello mates,
i have a multiple level dropdown menu, the markup is an unordered list
of the likes:
me
me
me
me
me
me
Hi --
I'm trying to hide all the contents from s within a table *except*
for the first in each ... I don't want to hide the s,
just their contents, but I'm having trouble finding the correct
selector(s) to accomplish this.
So, for example, if the table is:
one
two
three
four
five
six
I'
I have HTML like so with a bunch of tags:
[ Title1 ]
[ Title2 ]
..
[ Titlen ]
These fade in and out and I had this for the fade out:
$('[EMAIL PROTECTED]').click( function() {
$(this).text("").fadeOut(250);
});
But I don't want to click the div container to fade out, but rather
the lege
This doesnt work
http://www.whatbird.com/wwwroot/Components/jQuery_How_Do_I_not.html
This works
http://www.whatbird.com/wwwroot/Components/jQuery_How_Do_I_not2.html
The first example uses John's example for using not. Klaus your's
didnt work either.
Is this my stupidity again?
Mitch
Does anyone have a way to select
"all divs except one with a specific ID?"
I want something like
$(* :not("myID")).click
or
$(div :not("myID")).click
I have tried :not but have not been able to get it to work on IDs,
seems that it just works on elements.
thanks
Mitch
16 matches
Mail list logo