[jQuery] Re: Highlight plugin updated (highlight elements and related elements as you interact with them)

2008-05-30 Thread Ashish Agrawal
Nice plugin thanks Dave.

[jQuery] Re: need help superfish jquery for Joel Birch

2008-05-30 Thread Joel Birch
Hello, This is an easy one to answer. You just need to include the hoverIntent plugin by Brian Cherne. Simply link to the plugin using a script tag and Superfish will automatically use it to do exactly what you want. http://cherne.net/brian/resources/jquery.hoverIntent.html Joel Birch

[jQuery] Re: Hover Effects

2008-05-30 Thread tlob
Wow! super cool blinky flashy website. (Cancer to my Eyeballs) I just dont like it, sorry. To answer you question: FadeIn, FadeOut would fit: http://docs.jquery.com/Effects/fadeIn#speedcallback more Effects here: http://docs.jquery.com/Effects cheers tlz On May 30, 1:52 am, Mason

[jQuery] jQuery site broken in IE6

2008-05-30 Thread travi
I tried to visit the jQuery site today in IE6 and found that most of the site does not display correctly. I could not find a way to view the docs. Is this a known problem with the site? Doesn't look good for a library that supports a browser to have a website that doesn't work in that browser.

[jQuery] Re: corners plugin works in IE but fails in Firefox

2008-05-30 Thread JP
ok , it must be my settings in the browser, thanks for responding On May 28, 11:26 am, malsup [EMAIL PROTECTED] wrote: Can somebody help with why this example works in IE 7 but fails to show corners in Firefox 2 ? http://paste.pocoo.org/show/55276/ That page works fine for me in FF2

[jQuery] Re: jBox plugin help needed

2008-05-30 Thread JP
the jbox window has a close button on it but I can't follow the code to see how it works. I was hoping to have the window close by itself without manually clicking the close button. On May 21, 11:51 am, Sam Sherlock [EMAIL PROTECTED] wrote: perhaps thickbox, lightbox or shadowbox? the link

[jQuery] Why report handler.apply is not a function

2008-05-30 Thread James Hang
in html: script type=text/javascript src=/new/js/jquery-1.2.6.min.js/ script script type=text/javascript src=/new/js/cms.js/script a class=Brand href=#img src=check.gif//a in cms.js: checkDeleteBrand = function(){ window.confirm(Really want to check this brand?); } readyFunction =

[jQuery] $(document).ready Events not firing on elements of code injected via ajax call

2008-05-30 Thread truent
Im using $(document).ready to bind an onsubmit and onclick event to 2 elements of my form. Either of these events fires separately with no problem. However, when the onsubmit injects html into a div on page, and I then attempt to click on one of the newly injected elements expecting the onclick

[jQuery] How to make the pause 3 sec or some delay

2008-05-30 Thread mtest
That all :) How to make the pause 3 sec or some delay :))

[jQuery] Re: element.attr() bug in jquery 1.2.6?

2008-05-30 Thread Phil Christensen
On May 29, 5:55 pm, John Resig [EMAIL PROTECTED] wrote: I'm confused - you're getting and modifying the onclick attribute? That seems... strange. Yeah, now that I think about it, it's pretty ridiculous. Ah, the fruits of a rushed deployment... I guess I tend to manipulate the DOM by default

[jQuery] bug: [ui 1.5b4] jquery ui ... dialog problem

2008-05-30 Thread Adwin Wijaya
I used jquery 1.5b2 packed and I use jquery dialog ... it work perfectly .. but when I used 1.5b4 packed ... the dialog won't open ... it produce error ... which i don't know why ...

[jQuery] [validate] error messages for bilingual site

2008-05-30 Thread Philippe
Hello, First thank you for this great plugins. How can I generate error messages in the user chosen language (French or English)? Alternatively can how could I send a PHP constant as error message? Thanks Philippe

[jQuery] Re: What is the purpose of th jcarousel this.funcResize() function?

2008-05-30 Thread Domaa
So do we know why the funcResize() function is there? For mine it seems that there is no purpose for this function at all. Cheers, Domaa. On May 23, 7:22 pm, Jan Sorgalla [EMAIL PROTECTED] wrote: Hi, i fixed that in the current version. Jan On 19 Mai, 18:48, Jeff Kenny [EMAIL PROTECTED]

[jQuery] Get co-ordinates of click on image

2008-05-30 Thread Michael Price
Hi all, Working on something for a client at the moment - they have a map and they want to pinpoint where on this map something is, and then store this in the database. I'm thinking we put an image of the map in the admin area for them and they can click on it to set the co-ords, but I'm

[jQuery] Re: [validate] bug

2008-05-30 Thread Jörn Zaefferer
Oh, okay. I thought you were referring to the issue that1.2.5 caused, sorry. I'l´l take a look at the patch, its fine this way. Jörn On Wed, May 28, 2008 at 12:21 AM, Mike Nichols [EMAIL PROTECTED] wrote: Hm...sorry I guess I don't follow. The bug/patch I was talking about was that if you

[jQuery] Re: How to make the pause 3 sec or some delay

2008-05-30 Thread tlob
please be more specific! pause what? In between what. A fade? Sample code? URL? This way nobody is gonna help you On May 30, 10:15 am, mtest [EMAIL PROTECTED] wrote: That all :) How to make the pause 3 sec or some delay :))

[jQuery] Re: Why report handler.apply is not a function

2008-05-30 Thread Wizzud
You're passing a string into mouseover() instead of function name $('a.Brand').mouseover(checkBrand); (assuming that the function checkBrand() does actually exist!) James Hang wrote: in html: script type=text/javascript src=/new/js/jquery-1.2.6.min.js/ script script

[jQuery] [ANNOUNCE] jFlip plugin

2008-05-30 Thread Renato Formato
Hi all, I've just released the jFlip plugin, a plugin to make unobtrusive flipping page image galleries using canvas (warning: no Flash needed!). It works with all jquery compatible browsers, IE included, using an enhanced version of excanvas I wrote. Enjoy!

[jQuery] Re: trouble passing href

2008-05-30 Thread Wizzud
To get the href you either access the property of the element directly, or use the attr() function on the jQuery object. Eg. (note : I'm using $('a', this) instead of $(this).children()...) alert( $('a', this)[0].href ); //the [0] retrieves the actual element or alert( $('a',

[jQuery] Re: $(document).ready Events not firing on elements of code injected via ajax call

2008-05-30 Thread Pyrolupus
On May 30, 12:08 am, truent [EMAIL PROTECTED] wrote: Im using $(document).ready to bind an onsubmit and onclick event to 2 elements of my form.  Either of these events fires separately with no problem.  However, when the onsubmit injects html into a div on page, and I then attempt to click on

[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread tlob
the docs are good for searching... so is google: http://docs.jquery.com/Tutorials:Mouse_Position cheers tlz On May 30, 1:02 pm, Michael Price [EMAIL PROTECTED] wrote: Hi all, Working on something for a client at the moment - they have a map and they want to pinpoint where on this map

[jQuery] Re: error messages for bilingual site

2008-05-30 Thread tlob
You should ask that in a PHP forum. User choose a language. This is stored in a session/cookie. You show content/alerts in the choosen language. As I said, look for session/cookie handling in php/google. cheers tlz On May 30, 10:18 am, Philippe [EMAIL PROTECTED] wrote: Hello, First thank

[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread Michael Price
tlob wrote: the docs are good for searching... so is google: http://docs.jquery.com/Tutorials:Mouse_Position cheers tlz On May 30, 1:02 pm, Michael Price [EMAIL PROTECTED] wrote: Hi all, Working on something for a client at the moment - they have a map and they want to pinpoint where on

[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread Michael Price
tlob wrote: the docs are good for searching... so is google: http://docs.jquery.com/Tutorials:Mouse_Position That did the trick, thanks :) Regards, Michael Price

[jQuery] Livequery event firing multiple times

2008-05-30 Thread Gordon
I'm working on a survey builder which will allow users to create online surveys and polls. I decided to use livequery to build it as it involves lots of adding and deleting of DOM items that have associated events. I'm still at an early stage of development but I've run into a snag. The

[jQuery] Re: Livequery event firing multiple times

2008-05-30 Thread Brandon Aaron
After a quick glance at the code you pasted... it looks like you are using the Live Query plugin within the click event. This somewhat negates the purpose of Live Query. Try moving the Live Query block outside the 'click' binding block ... within the document.ready block. -- Brandon Aaron On

[jQuery] Re: $(document).ready Events not firing on elements of code injected via ajax call

2008-05-30 Thread steve_f
you can use the live plugin. This basically keeps watch for dom elements that match the selector given. Thus when you inject new content into the div it will automatically hookup any matched new elements. se here for details http://brandonaaron.net/docs/livequery/ If you need more shout On May

[jQuery] How to use jCarousel in Drupal 5.7

2008-05-30 Thread Jeet
Hi, I had downloaded the jquery_update and jcarousel module form drupal.org and installed these. Now the problem is how i can configure this in front end.i.e. how i can show jCarousel in front end. What code snippete needs to write me?

[jQuery] Re: Making a hrefs and using click on them

2008-05-30 Thread Adam Housman
I didn't read through all of the code, but when I want to grab an href I usually store it in the link's rel attribute. If you're not concerned about maintaining valid HTML, you can make up any attribute you want (so long as it doesn't already have a purpose in the XHTML spec). $(document).ready(

[jQuery] Re: flashembed plugin

2008-05-30 Thread hcvitto
hi sam thanks, i'm using your(?) plugin; looks good but i already have a problem (my fault, for sure ): the text inside the flash div remains visible! Did i miss anything? Thanx vitto -- this is the css div#header{width:740px;height:200px;} -- this is the javascript

[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread hagalaz
You can find what you need and more info on events there. http://docs.jquery.com/Events_(Guide)

[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread steve_f
if you pass in the event to the function you can use e.pageX and e.pageY to get the coordinates of the click event So: $(#map).click(function(ev) { mouseX = ev.pageX; mouseY = ev.pageY } On May 30, 12:02 pm, Michael Price [EMAIL PROTECTED] wrote: Hi all, Working on something for a

[jQuery] tablesorter / tablesorterPager question

2008-05-30 Thread Jason Rice
I posted this in the plugins group, but just noticed it is dead there. I have a tablesorter.tablesorterPager table in which I need to remove rows and have the pager updated accordingly (trying to avoid an ajax refresh on the table). Right now I'm removing the target row through jquery remove()

[jQuery] Tooltip

2008-05-30 Thread armyofda12monkeys
Hello all, I was looking at tooltip examples in Tooltip plugin and just saw all examples where it makes the tooltip based off the title attribute. I was wondering if there were any other solutions? i was using a prototype based solution seen here

[jQuery] Re: Why report handler.apply is not a function

2008-05-30 Thread Scott Sauyet
James Hang wrote: checkDeleteBrand = function(){ window.confirm(Really want to check this brand?); } readyFunction = function(){ $('a.Brand').mouseover(checkBrand); $(document).ready(readyFunction); Beyond the difference between checkBrand and checkDeletedBrand, you have something

[jQuery] Re: jQuery History Plugin

2008-05-30 Thread Klaus Hartl
On May 30, 1:35 am, timothytoe [EMAIL PROTECTED] wrote: Yes. Oh well. Where should I watch for updates? Will there be an update of history to accommodate UI Tabs? Or is it more likely that UI Tabs will incorporate a history feature? I have roughly rewritten the history plugin already so

[jQuery] Re: REMINDER: jQuery Site Detection Greasemonkey Script

2008-05-30 Thread Pyrolupus
Karl, that's fantastic! I've copied Paul's script to my own site with the title change you suggested. I frequently wish to know what version sites are running. Sorry for the necropost; was searching to see if there was any talk about updating the jQuery Detector plugin[1] to work with FF3 and

[jQuery] Re: jQuery History Plugin

2008-05-30 Thread timothytoe
Great. I'll keep my eyes peeled. On May 30, 7:55 am, Klaus Hartl [EMAIL PROTECTED] wrote: On May 30, 1:35 am, timothytoe [EMAIL PROTECTED] wrote: Yes. Oh well. Where should I watch for updates? Will there be an update of history to accommodate UI Tabs? Or is it more likely that UI Tabs

[jQuery] Re: Tooltip

2008-05-30 Thread Karl Swedberg
You might want to take a look at my clueTip plugin. It allows you to load the contents of the tooltip with the title attribute, the text contents of an element on the current page, or the result of an ajax request. Also, in the most recent version, if you can use a string as the first

[jQuery] Re: Tooltip

2008-05-30 Thread Pyrolupus
Have you seen or tried clueTip? http://plugins.learningjquery.com/cluetip/demo/ ~Pyro On May 30, 10:22 am, armyofda12monkeys [EMAIL PROTECTED] wrote: Hello all, I was looking at tooltip examples in Tooltip plugin and just saw all examples where it makes the tooltip based off the title

[jQuery] Re: removeAttr for rowspan

2008-05-30 Thread snobo
CORRECTION: no, rowspan doesn't work in IE, which ONLY understands it with a capital S: rowSpan. So, now (since 1.2.5) the only way to remove a rowspan in IE is to do .attr('rowSpan',1) and not removeAttr('rowspan') or removeAttr('rowSpan') or attr('rowspan',1). FF forgives and understands all

[jQuery] Re: [ANNOUNCE] jFlip plugin

2008-05-30 Thread Jean
Niiice! On Fri, May 30, 2008 at 8:47 AM, Renato Formato [EMAIL PROTECTED] wrote: Hi all, I've just released the jFlip plugin, a plugin to make unobtrusive flipping page image galleries using canvas (warning: no Flash needed!). It works with all jquery compatible browsers, IE

[jQuery] Re: flashembed plugin

2008-05-30 Thread Sam Sherlock
not my plugin but Luke Lutman's sounds like you need to add to your stylesheet .flash-replaced .alt { display:block; height:0pt; overflow:hidden; position:absolute; width:0pt; } for more info see this example http://jquery.lukelutman.com/plugins/flash/example-text-replacement.html all the info

[jQuery] OT: Bug in IE: Flash, iframes, and dynamic height of Flash movie

2008-05-30 Thread Andy Matthews
We have a Flash movie that resizes vertically based on it's content. When it resizes itself, it also issues a command to the containing page to resize the HTML container. This works great under regular use. But lately some of our clients have been trying to frame in our content page using an

[jQuery] Re: Stop $.ajax() from clearing the page

2008-05-30 Thread eid
B to the ump

[jQuery] Re: $(document).ready Events not firing on elements of code injected via ajax call

2008-05-30 Thread truent
Thanks a ton guys. I knew it was some lack of knowledge on my part. I ended up just using another document.ready in the success callback function. I intend to look into live as well though. Thanks again! On May 30, 3:18 am, steve_f [EMAIL PROTECTED] wrote: you can use the live plugin. This

[jQuery] down-loadable tutorial videos ??

2008-05-30 Thread GiJeet
Hello, if anyone knows where to find jquery tutorial videos that you can download to watch offline please send link. I can't watch online. thanks!! G

[jQuery] Re: checkbox manipulation and toggle()

2008-05-30 Thread benjam
Although you need to make sure that you set the for attribute o the label tag to the id attribute of the input tag, NOT the name attribute. One way to get around this issue (and the recommended method) is to set the name and id attribute of the input tag the same. If you wrap the input tag with

[jQuery] Re: Hover Effects

2008-05-30 Thread Mason
Thanks!

[jQuery] Re: Tooltip

2008-05-30 Thread Emmanuel Briot
On Fri, May 30, 2008 at 5:17 PM, Karl Swedberg [EMAIL PROTECTED] wrote: You might want to take a look at my clueTip plugin. It allows you to load the contents of the tooltip with the title attribute, the text contents of an element on the current page, or the result of an ajax request. Also,

[jQuery] Video Tutorials - any down-loadable ??

2008-05-30 Thread GiJeet
Hello, I'm looking for JQuery tutorials on video that I can download and watch offline. I can't watch online. If anyone knows where to find down-loadable tutorials of any level - beginner, intermediate, advanced, or on any specific topic, please send link. I'm trying to learn as much about

[jQuery] Re: Symantic Markup with Nice Accordion.. ..

2008-05-30 Thread Danjojo
Hi all, did i post in the wrong forum for this? Thanks, D On May 29, 1:28 pm, Danjojo [EMAIL PROTECTED] wrote: I had the original demo from a popular site to get the Accordion menu to work... I work with a team and we have designers who will want to access the markup with css perfectly. So

[jQuery] [ANNOUNCE] New Plugin: Magnify

2008-05-30 Thread Josh Nathanson
Hey all, Got a new plugin for folks to check out - it allows you to create an image magnifier like those you see on a lot of e-commerce sites. Here's the link: http://tinyurl.com/6kwzf9 Features include: - Set show event to mouseover or click - Allows preloading of larger image, or not if

[jQuery] Re: jEditable Used Many Times on a Page

2008-05-30 Thread Mika Tuupola
On May 29, 2008, at 8:48 PM, Roscoe wrote: You might want to check this tutorial from CakeBaker: http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/ jEditable. I've included a code sample below. Anything with 'opts.' in front of it is a variable which can change

[jQuery] Re: [ANNOUNCE] New Plugin: Magnify

2008-05-30 Thread Matthieu BARBE
Yeah, nice plugin ! Good work Josh ! 2008/5/30 Josh Nathanson [EMAIL PROTECTED]: Hey all, Got a new plugin for folks to check out - it allows you to create an image magnifier like those you see on a lot of e-commerce sites. Here's the link: http://tinyurl.com/6kwzf9 Features include:

[jQuery] ASP.NET UpdatePanel vs. jQuery - Tutorials

2008-05-30 Thread vladv
Hi all, I'm looking for some kind of tutorial for the topic in the title... Thank you

[jQuery] Re: need help superfish jquery for Joel Birch

2008-05-30 Thread Greg
Yes it's work ! Thank'S a lot Joel On 30 mai, 05:46, Joel Birch [EMAIL PROTECTED] wrote: Hello, This is an easy one to answer. You just need to include the hoverIntent plugin by Brian Cherne. Simply link to the plugin using a script tag and Superfish will automatically use it to do exactly

[jQuery] jCarousel question

2008-05-30 Thread Amos
Jan: I am using jCarousel within a jqModal box (http://dev.iceburg.net/ jquery/jqModal/). The problem is that sometimes the jCarousel style sheet does not seem to operate. In short, sometimes the elements in the carousel to do display horizontally but display as a list. Occasionally, the

[jQuery] Re: Video Tutorials - any down-loadable ??

2008-05-30 Thread steve_f
you could start here http://jqueryfordesigners.com/ find the screencasts tag link - he has four or five you can download On May 30, 4:40 pm, GiJeet [EMAIL PROTECTED] wrote: Hello, I'm looking for JQuery tutorials on video that I can download and watch offline.  I can't watch online.  If

[jQuery] Re: New Plugin: Magnify

2008-05-30 Thread malsup
Got a new plugin for folks to check out - it allows you to create an image magnifier like those you see on a lot of e-commerce sites.  Here's the link: http://tinyurl.com/6kwzf9 Nice!

[jQuery] Re: [ANNOUNCE] New Plugin: Magnify

2008-05-30 Thread Rick Faircloth
Looks great, Josh... I will certainly be giving this a try! Thanks for the work! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh Nathanson Sent: Friday, May 30, 2008 1:49 PM To: jquery-en@googlegroups.com Subject: [jQuery]

[jQuery] Re: New Plugin: Magnify

2008-05-30 Thread Danjojo
WOW, I am impressed. On May 30, 1:49 pm, Josh Nathanson [EMAIL PROTECTED] wrote: Hey all, Got a new plugin for folks to check out - it allows you to create an image magnifier like those you see on a lot of e-commerce sites. Here's the link: http://tinyurl.com/6kwzf9 Features include:

[jQuery] Re: Do something, ONLY if parent has children

2008-05-30 Thread hubbs
Sorry for not being clear. I would like to hide H3 when next element does not have class 'calendarEvent' (Meaning, there would be another H3, if there was not a div with class 'calendarEvent' E.g.: h3Text/h3 h3Text/h3 h3Text/h3 h3Text/h3 h3Text/h3 div class=calendarEventtext/div h3Text/h3 div

[jQuery] mouse hover focus not working in FF2

2008-05-30 Thread skunkwerk
I'm using the jquery mousewheel plugin, which is working fine on IE 6 and firefox 3, but not firefox 2. firebug shows no javascript errors. my code is supposed to switch focus between two elements as the mouse hovers over them (one contains a flash widget): $(function() { $('#widget')

[jQuery] Re: Do something, ONLY if parent has children

2008-05-30 Thread Giuliano Marcangelo
$('h3').hide(); $('.calendarEvent').prev('h3').show(); 2008/5/30 hubbs [EMAIL PROTECTED]: Sorry for not being clear. I would like to hide H3 when next element does not have class 'calendarEvent' (Meaning, there would be another H3, if there was not a div with class 'calendarEvent' E.g.:

[jQuery] Re: Stop $.ajax() from clearing the page

2008-05-30 Thread eid
Fixed now, thanks to the great IRC channel :-)

[jQuery] jquery.magnify by Josh

2008-05-30 Thread Trend-King
Hi there. I like your script so much that i build it in our page http://www.drum-factory.de/Drums/Schlagzeugwagen/Anbauteile/Tom-Tom-Winkel::34.html but I found a few issues during testing the app. 1. If you go over the image the magnify appears, if you go fast out of the image and then

[jQuery] timing of multiple Cycle slides (Cycle Plugin)

2008-05-30 Thread aronduby
Hey all, I working on a site that uses 4 instances of the Cycle plugin to rotate divs filled with text. The client loves it, but they don't want them to all cycle at the same time. They want box 1 to cycle, short pause, box 2 to cycle, short pause... And I can't figure it out (obviously). Any

[jQuery] Re: jquery.magnify by Josh

2008-05-30 Thread Josh Nathanson
Trend-King, I've noted your comments here and off-list. I just released the first version a couple of hours ago, so I don't know if it's production-ready yet, and I'm at my day job so I can't get much else done on it today. Keep hacking away at it and let me know how it goes. -- Josh

[jQuery] Re: jquery.magnify by Josh

2008-05-30 Thread Josh Nathanson
Trend-King, 2. http://www.drum-factory.de/Drums/Schlagzeugwagen/Anbauteile/Tom-Tom-Winkel::34.html here we have 2 magnify the first work, the second won’t work, I think because of the #bild2 display:none; property if I chance the display property to block by css both work, but if I chance the

[jQuery] Re: timing of multiple Cycle slides (Cycle Plugin)

2008-05-30 Thread malsup
I working on a site that uses 4 instances of the Cycle plugin to rotate divs filled with text. The client loves it, but they don't want them to all cycle at the same time. They want box 1 to cycle, short pause, box 2 to cycle, short pause... And I can't figure it out (obviously). Any help

[jQuery] jquery documentation of exlusion pseudo-class

2008-05-30 Thread jquertil
according to jquery documentation I should be able to select an element that is NOT something, i.e. exclusion. DOM: divhello spanthere, how are/span you?/div JQUERY SELECTOR: $('DIV :not(SPAN)') SHOULD RETURN: divhello you?/div right? well, it's not happening for me... what am I dogin

[jQuery] Re: New Plugin: Magnify

2008-05-30 Thread jquertil
dude, that's a totally sweet plugin.

[jQuery] Re: jquery documentation of exlusion pseudo-class

2008-05-30 Thread duck!
$(div:not(span)); will return all the divs in the document that are not spans... all of them obviously You want all the divs that don't (:not()) contain (:has()) spans. $(div:not(:has(span))); hope this helps. jquertil wrote: according to jquery documentation I should be able to select

[jQuery] Contextmenu plugin help

2008-05-30 Thread Mauricio Farah
Hi, I need help with this plugin. I'm not sure if this is the place to post it, I apologize if it isn't but I don't know how to contact the developer. Basically Contextmenu let's you override the browser's right click menu if you do it over some elements of your choice (more reference on

[jQuery] [validate] Packed version not working in IE6

2008-05-30 Thread Drakanor
I just came across a strange problem with validation plugin not working in IE6 at all. After testing a bit I found the reason: when using the packed version of the plugin IE6 pops up a javascript error and processes the form without validation, while working fine with the unpacked version. Other

[jQuery] Re: jquery documentation of exlusion pseudo-class

2008-05-30 Thread duck!
On second thoughts, it looks like you want the div that contains the span but without the span in it? I think there is something wrong that your logic there, but depending on what you want to do something like this might work for you: $(div:has(span)).find(span).remove().end(); That will remove