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
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
I'm using jQuery 1.2.6 and having an a element with the attribute
ajax:id=46
a href=# ajax:id=46Test Link/a
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
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
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
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 n...@naden.de wrote:
Your right.
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 ilovejqu...@gmail.com wrote:
Slightly :)
You can not have special character in your html ATTRIBUTES.
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 n...@naden.de wrote:
That sucks. jQuery has no problem with $( 'a' ).attr( 'ajax:id' );
Therefore it would be nice to use it in the
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]);});
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 does this
hello mates,
i have a multiple level dropdown menu, the markup is an unordered list
of the likes:
ul
lia href=#me/a
ullia href=#me/a/li
lia href=#me/a
ullia href=#me/a/li
lia href=#me/a/li
Hi --
I'm trying to hide all the contents from tds within a table *except*
for the first td in each tr... I don't want to hide the tds,
just their contents, but I'm having trouble finding the correct
selector(s) to accomplish this.
So, for example, if the table is:
table
tr
tdone/td
tdtwo/td
I have HTML like so with a bunch of fieldset tags:
fieldsetlegend[ Title1 ]/legenddiv id='wc1'/div/fieldset
fieldsetlegend[ Title2 ]/legenddiv id='wc2'/div/fieldset
..
fieldsetlegend[ Titlen ]/legenddiv id='wcn'/div/fieldset
These fade in and out and I had this for the fade out:
$('[EMAIL
14 matches
Mail list logo