[jQuery] Re: hide() works fine - fadeOut() is not working - Don't understand....

2010-01-17 Thread Reinhard Vornholt
After switching to jQuery 1.4 everything works fine. My guess is, that it had something to do with the css of my div. It had a position:fixed attribute. But thats just a guess. On 14 Jan., 23:08, Reinhard Vornholt reinhard.vornh...@gmail.com wrote: Hello group, ich am fairly new to jQuery and

Re: [jQuery] Re: hide() works fine - fadeOut() is not working - Don't understand....

2010-01-17 Thread Nathan Klatt
On Sun, Jan 17, 2010 at 6:17 AM, Reinhard Vornholt reinhard.vornh...@gmail.com wrote: After switching to jQuery 1.4 everything works fine. My guess is, that it had something to do with the css of my div. It had a position:fixed attribute. But thats just a guess. Glad you got it figured out but

[jQuery] Re: Hide Table Row - Fundamentally I'm wrong.

2009-12-08 Thread Toolman
This example hides but doesn't unhide in iE6 for me. On Dec 3, 5:00 am, Leonardo K leo...@gmail.com wrote: I tested here and worked: http://jsbin.com/ivude On Wed, Dec 2, 2009 at 13:32, mickey mwjbea...@googlemail.com wrote: Anyone?

[jQuery] Re: Hide Table Row - Fundamentally I'm wrong.

2009-12-02 Thread mickey
Anyone?

Re: [jQuery] Re: Hide Table Row - Fundamentally I'm wrong.

2009-12-02 Thread Leonardo K
I tested here and worked: http://jsbin.com/ivude On Wed, Dec 2, 2009 at 13:32, mickey mwjbea...@googlemail.com wrote: Anyone?

[jQuery] Re: Hide chat content

2009-11-30 Thread Scott Sauyet
On Nov 29, 3:26 pm, Jerry Johnson jerryhost@gmail.com wrote: ok, that worked, but now I need to make an ajax call... So go ahead and make one. :-) Or were you looking for more specific help? -- Scott

Re: [jQuery] Re: Hide chat content

2009-11-30 Thread Jerry Johnson
Ya, here is my problem. I know how to make the ajax call, and it all works, but, I need to somehow connect the msg id from the mysql database to the ajax call, so I need another div, that has the id.

[jQuery] Re: Hide chat content

2009-11-30 Thread Scott Sauyet
On Nov 30, 11:00 am, Jerry Johnson jerryhost@gmail.com wrote: Ya, here is my problem. I know how to make the ajax call, and it all works, but, I need to somehow connect the msg id from the mysql database to the ajax call, so I need another div, that has the id. There are many ways to do

Re: [jQuery] Re: Hide chat content

2009-11-29 Thread Jerry Johnson
ok, that worked, but now I need to make an ajax call... On Sat, Nov 28, 2009 at 11:54 PM, Charlie charlie...@gmail.com wrote: Now instead of multiple Id's all the same you have numeric ID's. ID's can't start with numbers. Adding onclick to your markup is moving backwards with jQuery.

Re: [jQuery] Re: Hide chat content

2009-11-28 Thread Jerry Johnson
I have done so, but it still doesn't work

[jQuery] Re: Hide chat content

2009-11-28 Thread Jerry Johnson
bump

Re: [jQuery] Re: Hide chat content

2009-11-28 Thread Charlie
Now instead of multiple Id's all the same you have numeric ID's. ID's can't start with numbers. Adding onclick to your markup is moving backwards with jQuery. Currently your hide function is not available in the DOM for onclick's as it is closed within jQuery and therefore is not a global

[jQuery] Re: Hide chat content

2009-11-27 Thread Jerry Johnson
I have verified that it is not the ajax call.

[jQuery] Re: Hide chat content

2009-11-27 Thread Scott Sauyet
On Nov 27, 12:03 pm, Jerry Johnson jerryhost@gmail.com wrote: $('a.#hide').click(function()         {                 $(this).hide();         } ); What does a.#hide mean? Shouldn't that just be a#hide, or better yet, #hide? div id='msg' tr td style='border-bottom:1px solid

Re: [jQuery] Re: Hide chat content

2009-11-27 Thread Jerry Johnson
On Fri, Nov 27, 2009 at 1:47 PM, Scott Sauyet scott.sau...@gmail.comwrote: On Nov 27, 12:03 pm, Jerry Johnson jerryhost@gmail.com wrote: $('a.#hide').click(function() { $(this).hide(); } ); What does a.#hide mean? Shouldn't that just be a#hide, or

Re: [jQuery] Re: Hide chat content

2009-11-27 Thread Charlie
ID's must be unique, you use ID='hide" over and over, can't do it try changing to class="hide" and corresponding jQuery adjust Jerry Johnson wrote: On Fri, Nov 27, 2009 at 1:47 PM, Scott Sauyet scott.sau...@gmail.com wrote: On Nov 27, 12:03pm, Jerry Johnson jerryhost@gmail.com

[jQuery] Re: .hide and .show div's

2009-11-11 Thread MorningZ
Oops. got the selector wrong. It should be: $( function() { $(div[class^=hide-BAT].hide(); }); Joe You still didn't get it right :-) $(div[class^=Hide-BAT]).hide(); To original poster: if you want fast, then you can't beat CSS with jQuery's hide method have like: div class=Hide BAT1

[jQuery] Re: .hide and .show div's

2009-11-11 Thread David pr
Thank you all i've (you guys) crack it.

Re: [jQuery] Re: .hide and .show div's

2009-11-11 Thread Joe Moore
Oops! Thanks for the catch! The other thing to understand is that this wont work for browsers that have JavaScript disabled. On Nov 11, 2009 9:16 AM, MorningZ morni...@gmail.com wrote: Oops. got the selector wrong. It should be: $( function() { $(div[class^=hide-BAT].hide(); ... You still

[jQuery] Re: hide browser toolbars using jQuery

2009-10-21 Thread James
Not possible. On Oct 21, 9:02 am, Subtle subtlekil...@gmail.com wrote: Using window.open I can achieve this, however, from what I understand window.open is normally used for popups.  What I want is the first time the user opens their browser and points to my site, they should see my site

[jQuery] Re: Hide checkbox when choosen value in select 0

2009-10-12 Thread Tan
Thanks Brian. It's very work. On Oct 11, 10:55 pm, brian bally.z...@gmail.com wrote: On Sat, Oct 10, 2009 at 1:45 PM, Tan it_qn2...@yahoo.com wrote: Hello, span id=thmr_5 class=thmr_call  div class=form-item id=edit-sitewide-wrapper  label class=option for=edit-sitewideinput

[jQuery] Re: Hide checkbox when choosen value in select 0

2009-10-11 Thread brian
On Sat, Oct 10, 2009 at 1:45 PM, Tan it_qn2...@yahoo.com wrote: Hello, span id=thmr_5 class=thmr_call  div class=form-item id=edit-sitewide-wrapper  label class=option for=edit-sitewideinput type=checkbox name=sitewide id=edit-sitewide value=1   class=form-checkbox / site wide/label /div

[jQuery] Re: Hide/Show if logged in

2009-10-09 Thread Painstik
No it is not a trick question, I am new with jquery. I decided to do it on server side, thanks for help.

[jQuery] Re: Hide row if empty

2009-10-08 Thread Bohdan Ganicky
Hi, use .parent() instead of .parents() http://jsbin.com/isasi/ -- Bohdan On Oct 8, 6:17 am, Wacko Jacko jackson.be...@gmail.com wrote: I am having a bit of trouble with this one. Thanks for your help. I could get it working if the parent is a div but not if it's an li. Here's my html:

[jQuery] Re: Hide row if empty

2009-10-08 Thread Wacko Jacko
Thanks Bohdan. Tried that first. No luck. As I said, it will work if the parent is a div, but not if the parent of the div is an li. Thanks again. Jack On Oct 8, 5:56 pm, Bohdan Ganicky bohdan.gani...@gmail.com wrote: Hi, use .parent() instead of .parents() http://jsbin.com/isasi/ --

[jQuery] Re: Hide row if empty

2009-10-08 Thread Charlie
did you look at the working example on jsbin where the li is being hidden? Wacko Jacko wrote: Thanks Bohdan. Tried that first. No luck. As I said, it will work if the parent is a div, but not if the parent of the div is an li. Thanks again. Jack On Oct 8, 5:56pm, Bohdan Ganicky

[jQuery] Re: Hide row if empty

2009-10-08 Thread Wacko Jacko
Hi There. Yeah, just did. Thanks for that! Why does my test using the same code not work :( http://www.noosabiosphere.org.au/tester.htm On Oct 9, 8:46 am, Charlie charlie...@gmail.com wrote: did you look at the working example on jsbin where the li is being hidden? Wacko Jacko

[jQuery] Re: Hide row if empty

2009-10-08 Thread Charlie Griefer
On Thu, Oct 8, 2009 at 5:10 PM, Wacko Jacko jackson.be...@gmail.com wrote: Hi There. Yeah, just did. Thanks for that! Why does my test using the same code not work :( http://www.noosabiosphere.org.au/tester.htm Viewing the source, that div isn't empty. it's got whitespace characters

[jQuery] Re: Hide/Show if logged in

2009-10-08 Thread James
I'm not sure if this is a trick question or not... // if logging out $(#LoggedIn).hide(); $(#LoggedOut).show(); On Oct 8, 4:19 pm, Painstik pains...@gmail.com wrote: Hi everyone, I can't get this out, i searched everywhere and didn't find solution... div id=LoggedOut fieldset

[jQuery] Re: Hide row if empty

2009-10-07 Thread Wacko Jacko
I am having a bit of trouble with this one. Thanks for your help. I could get it working if the parent is a div but not if it's an li. Here's my html: ul class=member-table li divstrongWhy I am involved:/strong/div div class=answer{tag_why are you involved?}/div /li

[jQuery] Re: Hide row if empty

2009-09-30 Thread Charlie Griefer
If you're working with server side data like that, couldn't you just write a conditional in whatever language you're using (PHP, CF, ASP, etc) to not display the li if no data? Also, do you really mean to re-use database as an ID for multiple elements? ID's ought to be unique. On Wed, Sep 30,

[jQuery] Re: Hide row if empty

2009-09-30 Thread Charlie Griefer
Assuming you can turn those id's into classes (where you have id=database)... you can do the following: $(document).ready(function(){ $('ul .database').each(function() { if ($(this).text() == ) { $(this).parent().hide(); } }); }); On Wed, Sep 30, 2009 at 10:14

[jQuery] Re: Hide row if empty

2009-09-30 Thread Wacko Jacko
Hi Charlie, Thanks for your reply. I am using Business Catalyst (SaaS, hosted solution) so I can't do the php / ASP thang. I was using those id's only for reference purposes in this thread. Thanks. On Oct 1, 3:14 pm, Charlie Griefer charlie.grie...@gmail.com wrote: If you're working with

[jQuery] Re: Hide row if empty

2009-09-30 Thread Wacko Jacko
Brilliant! I will try this and get back to you.Thanks for your time! On Oct 1, 3:21 pm, Charlie Griefer charlie.grie...@gmail.com wrote: Assuming you can turn those id's into classes (where you have id=database)... you can do the following: $(document).ready(function(){     $('ul

[jQuery] Re: Hide/Show based on radio button selected

2009-09-15 Thread bjorsq
Hi, In the following example, all the radio controls have the name attribute set to myradio, and the #offices_checkboxes part of the document is shown when the radio with id 'radioOne' is checked. Your example probably didn't work because of the syntax you used in your attribute selector (no @

[jQuery] Re: Hide/Show based on radio button selected

2009-09-14 Thread Rick Faircloth
Just off the top of my head, but may work... $(document).ready(function() { $('#offices_checkboxes').hide(); $('input:radio[name=radioName]:checked').click(function() { $('#offices_checkboxes').show(); });

[jQuery] Re: .hide() not hiding elements in IE

2009-08-31 Thread nick.rathert
James and Charlie, your suggested changes worked like a charm. thanks for the help. it's much appreciated. - nick On Aug 28, 8:18 pm, Charlie charlie...@gmail.com wrote: ID's must be unique, you need to use class for multiple instances nick.rathert wrote:hi all, i'm having an interesting

[jQuery] Re: .hide() not hiding elements in IE

2009-08-28 Thread James
You cannot have more than one id=collapse on the document at one time. IDs are suppose to be unique. You can use a CLASS instead. Change your HTML to: ul class=searchResultsList collapse and your selector to: $(ul.collapse).hide(); On Aug 28, 8:11 am, nick.rathert nick.rath...@gmail.com wrote:

[jQuery] Re: .hide() not hiding elements in IE

2009-08-28 Thread Charlie
ID's must be unique, you need to use class for multiple instances nick.rathert wrote: hi all, i'm having an interesting IE6 and IE7 issue that may just be par for the course. i'm curious if anyone else has run into this problem. here's the URL: http://jsbin.com/afede long story short,

[jQuery] Re: hide divs with float:left and show them again

2009-08-20 Thread Mauricio (Maujor) Samy Silva
When you remove a floated element from the flow of a document its position is occupied by the next float and this causes the ruin! To preserve the space leaving by a removed div how about use: css('visibility', 'hidden'); istead of show() Maurício -Mensagem Original- De: simusch

[jQuery] Re: hide divs with float:left and show them again

2009-08-20 Thread Kevin
Is the layout broken initially or only after you hide/show the content? When you inspect the DIVs in Firebug, do they still have their float properties assigned? Are you specifying a width on the boxes? Posting example code always helps other developers troubleshoot your issues faster =) On Aug

[jQuery] Re: Hide function in IE

2009-08-18 Thread Liam Potter
IE cannot animate the opacity of a png with alpha transparency and there is no solution to this. pmni wrote: Hi. I'm building a website, and use your framework to hide/show a div. This work, but in IE when click to hide/show the div, the background became black, instead to maintaine the

[jQuery] Re: Hide function in IE

2009-08-18 Thread pmni
Thank you for the explain. On 18 Ago, 08:58, Liam Potter radioactiv...@gmail.com wrote: IE cannot animate the opacity of a png with alpha transparency and there is no solution to this. pmni wrote: Hi. I'm building a website, and use your framework to hide/show a div. This work, but

[jQuery] Re: Hide function in IE

2009-08-18 Thread Jonathan Vanherpe (T T NV)
By IE, I think he means IE6. I haven't tested this, but I think IE7 and up can do this fine, as long as you make sure you're applying any png hacks you're using to IE6 only with conditional comments. I could be wrong on this, though. Jonathan pmni wrote: Thank you for the explain. On 18

[jQuery] Re: Hide function in IE

2009-08-18 Thread Liam Potter
Nope, all versions of IE cannot animate the opacity of a PNG without the black artifact, regardless of any hacks that are applied. It's really quite annoying. Jonathan Vanherpe (T T NV) wrote: By IE, I think he means IE6. I haven't tested this, but I think IE7 and up can do this fine, as

[jQuery] Re: Hide function in IE

2009-08-18 Thread Jonathan Vanherpe (T T NV)
That sucks, I didn't know that. I was under the impression that they had fixed IE's png support with IE7, but I guess it shouldn't surprise me their 'fix' is buggy. Jonathan Liam Potter wrote: Nope, all versions of IE cannot animate the opacity of a PNG without the black artifact,

[jQuery] Re: Hide function in IE

2009-08-18 Thread Liam Potter
I'm not 100% sure, but the fix they used, seems to me to just be loading the png's into the alpha image loader natively, which is pretty damn poor if I'm correct. Jonathan Vanherpe (T T NV) wrote: That sucks, I didn't know that. I was under the impression that they had fixed IE's png

[jQuery] Re: hide() does not hide span in IE, but does in FF

2009-08-13 Thread msmaeda
  - Original Message -   From: Charlie   To: jquery-en@googlegroups.com   Sent: Wednesday, August 05, 2009 6:00 AM   Subject: [jQuery] Re: hide() does not hide span in IE, but does in FF   this is a lot to sift through to find one span hide issue for which there is likely an easy solution

[jQuery] Re: hide() does not hide span in IE, but does in FF

2009-08-05 Thread Charlie
this is a lot to sift through to find one span hide issue for which there is likely an easy solution. You'll get a lot better response by putting a test case on live link. jsbin.com is great for this if you don't have public access server msmaeda wrote: Hi, With the code below, I am

[jQuery] Re: hide() does not hide span in IE, but does in FF

2009-08-05 Thread Cesar Sanz
I will suggest you, that instead of pasting all your code (which ALMOST nobody reads) you put a demo in http://www.jsbin.com - Original Message - From: Charlie To: jquery-en@googlegroups.com Sent: Wednesday, August 05, 2009 6:00 AM Subject: [jQuery] Re: hide() does not hide

[jQuery] Re: hide() does not hide span in IE, but does in FF

2009-08-04 Thread rupak mandal
hi, if you use div instead of span I think it will work. On Tue, Aug 4, 2009 at 8:25 PM, msmaeda msma...@gmail.com wrote: Hi, With the code below, I am having an issue that only seems to occur in IE. The issue is that the payer_pane span should be hidden unless the NEW option is selected

[jQuery] Re: .hide function confusion

2009-06-28 Thread Charlie
jQuery.noConflict();- used when other libraries such as Mootools, Protoype etc are present. Used to avoid conflicts of multiple libraries using "$". Thus the reasoning behind "jquery" in longhand instead of "$". If noConflict() exists all jquery functions need to be longhand. "is not a

[jQuery] Re: .hide function confusion

2009-06-28 Thread Hokumae
Thanks Charlie, you were bang on. I replaced script language=javascript earlier in the php document with script type=text/javascript src=documentRoot/js/jquery.js/ script and the error cleared. Regards.

[jQuery] Re: Hide elements cleanly, not appear then disappear

2009-06-18 Thread heldtogether
Thanks, this is exactly what I was looking for. On Jun 17, 7:30 pm, Ricardo ricardob...@gmail.com wrote: If a page is small enough, I usually will hide them in javascript, on $ (document).ready(): myEl = $('#myEl').hide(); myEl.each(...); A good alternative is to add a class to the

[jQuery] Re: Hide elements cleanly, not appear then disappear

2009-06-17 Thread Ricardo
If a page is small enough, I usually will hide them in javascript, on $ (document).ready(): myEl = $('#myEl').hide(); myEl.each(...); A good alternative is to add a class to the body/html when javascript is on, see here:

[jQuery] Re: Hide button based on combo value

2009-06-16 Thread waseem sabjee
$(#color).change(function() { if($(this).val() == 2) { $(#buttons).hide(): } else { $(#buttons).show(); } }); On Tue, Jun 16, 2009 at 11:09 AM, ciupaz luigi.zambe...@gmail.com wrote: Hi all, I have a select option like this: select id=color name=color option value=Select a

[jQuery] Re: Hide button based on combo value

2009-06-16 Thread ciupaz
Perfect, thank you very much Waseem. Luis

[jQuery] Re: Hide/show divs based on form parameters

2009-06-14 Thread Mark
Ah, I actually came across this page, but assumed it was built into jQuery and didn't notice it was a plug-in. It works now, thanks for making me read it properly :P On Jun 14, 3:37 am, Nitin Sawant nitin.jays...@gmail.com wrote: http://www.mathias-bank.de/2006/10/28/jquery-plugin-geturlparam/

[jQuery] Re: Hide/show divs based on form parameters

2009-06-13 Thread Nitin Sawant
http://www.mathias-bank.de/2006/10/28/jquery-plugin-geturlparam/ On Jun 13, 8:37 pm, Mark markjtur...@gmail.com wrote: Hi all, I'm trying to selectively hide and show divs based on what a user specifies using three select boxes in a form. I'm quite new to jQuery so I'm probably missing

[jQuery] Re: Hide parent where a child contains....

2009-06-11 Thread mkmanning
$(fieldset:has(legend:contains('Promotions'))).hide() On Jun 11, 10:43 am, Jesse jesseainsk...@gmail.com wrote: I'm sure that I'm just missing something simple. Basically, I'm trying the hide the fieldset element if it contains legendPromotions/ legend but I can't get it to work. Here is my

[jQuery] Re: Hide function problem in IE8

2009-05-11 Thread waseem sabjee
Hi Luigi. Change your HTML Structure to this div id=choices input type=radio class=option id=personaFisica name=personaFisica value=0 / input type=radio class=option id=personaGiuridica name=personaGiuridica value=1 / !-- notice I wrapped my option in a div and

[jQuery] Re: Hide function problem in IE8

2009-05-11 Thread ciupaz
Perfect, thank you Waseem. Luigi

[jQuery] Re: Hide function problem in IE8

2009-05-11 Thread Liam Byrne
The 2 options won't work as radio buttons then, though, will they ? waseem sabjee wrote: Hi Luigi. Change your HTML Structure to this div id=choices input type=radio class=option id=personaFisica name=personaFisica value=0 / input type=radio class=option

[jQuery] Re: .hide and .show in FireFox vs IE6

2009-05-05 Thread tahooft
Thank you guys! The help was indeed helpful. I used css to replace the show and hide function and that did the trick. Maybe this could be solved in a more elegant way but at least I have this working for now and learned a lot. Added css: .gallery_demo li.galhidden { visibility:hidden

[jQuery] Re: .hide and .show in FireFox vs IE6

2009-05-01 Thread tahooft
O boy, forgot it was closed. Sorry. I have set it open now.

[jQuery] Re: .hide and .show in FireFox vs IE6

2009-05-01 Thread gersbod
Don't know if this helps, but the error itself is being caused by an unset marginLeft property on the .thumb class. (when it's trying to set properties for the objects options) The objects currents properties are: width:auto height:55 marginLeft:NaN I'm not sure if it's an error caused by

[jQuery] Re: .hide and .show in FireFox vs IE6

2009-05-01 Thread Pherdnut
I don't know how hide works in JQuery but in CSS visibility:hidden is treated the same or at least similar to display:none in IE 6. The real question is, what would possess you to use VS after all the trouble you've suffered at the hands of IE? On May 1, 6:01 am, gersbod bod@gmail.com wrote:

[jQuery] Re: .hide and .show in FireFox vs IE6

2009-04-28 Thread Leonardo K
We can't access your example page. You don't have permission to access /hideshow.php on this server. On Tue, Apr 28, 2009 at 04:58, tahooft taho...@tiscali.nl wrote: For me one of the best things about jQuery is that I don't have to worry about browser compatiblity. I wrote some code to

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread Sero
bump... pretty please? How do I remove more than the last child if necessary? On Apr 3, 11:34 am, Sero r...@combinecreative.com wrote: Hi guys, What I'm trying to do is hide list elements if their combined height is greater than my container div.  I've got a start, but it's not perfect.

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread brian
What about setting a fixed height to the UL in your CSS along with overflow: hidden? On Mon, Apr 6, 2009 at 11:34 AM, Sero r...@combinecreative.com wrote: bump... pretty please?   How do I remove more than the last child if necessary? On Apr 3, 11:34 am, Sero r...@combinecreative.com wrote:

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread Sero
Thanks, but sometimes I'll get an li with the text cut off through the middle. Only the top half of the letters display - looks rough. On Apr 6, 9:44 am, brian bally.z...@gmail.com wrote: What about setting a fixed height to the UL in your CSS along with overflow: hidden?

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread brian
On Mon, Apr 6, 2009 at 11:50 AM, Sero r...@combinecreative.com wrote: Thanks, but sometimes I'll get an li with the text cut off through the middle.  Only the top half of the letters display - looks rough. Good point. What about using a while loop, then? $(function() {

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread Sero
Beautiful, thank you so much Brian! On Apr 6, 10:17 am, brian bally.z...@gmail.com wrote: On Mon, Apr 6, 2009 at 11:50 AM, Sero r...@combinecreative.com wrote: Thanks, but sometimes I'll get an li with the text cut off through the middle.  Only the top half of the letters display - looks

[jQuery] Re: hide parent div according to span containing some text

2009-04-04 Thread Abdullah Rubiyath
Hi There, If I am not mistaken, 'contains' is a selector not a method. http://docs.jquery.com/Selectors/contains You could try with the following: $(span.total:contains('1)).parent().hide(); OR, if you decide to place it in If-else block, then do the following: if

[jQuery] Re: Hide problem

2009-03-30 Thread LaUr3nTiU
Yes, floating them to the left worked, thanks :)

[jQuery] Re: Hide problem

2009-03-29 Thread Hector Virgen
Instead of calling .hide() and .show(), try setting the css manually with .css({display: 'none'}) and .css({display: 'inline'}) Or, if you want to keep the animations, you can float left the LI elements instead of making them inline. On 3/29/09, LaUr3nTiU laurentiu.ter...@gmail.com wrote:

[jQuery] Re: Hide all elements after an element

2009-03-29 Thread Ricardo
$('#dropdown').nextAll().hide() will hide all elements that follow. http://docs.jquery.com/Traversing or using CSS selectors: $('#mydiv select:eq(1) ~ select').hide(); http://www.w3.org/TR/css3-selectors/#general-sibling-combinators On Mar 29, 4:00 am, iceangel89 iceange...@gmail.com wrote: I

[jQuery] Re: Hide/Show glossary page require for website using jQuery

2009-03-06 Thread James
script type=text/javascript $(document).ready(function() { $(.codeButton).hide(); $(.codeButton).click(function() { // get text in clicked button var letter = $(this).text(); $(.code).hide(); // hide everything $(.code+letter).show(); // show

[jQuery] Re: Hide/Show glossary page require for website using jQuery

2009-03-06 Thread Sean O
Have you seen the listNav plugin? http://www.ihwy.com/Labs/jquery-listnav-plugin.aspx Sounds like it fits well with what you're looking to do. SEAN O http://www.sean-o.com http://twitter.com/seandotcom JP-47 wrote: Hi There I am trying to implement a glossary page (A-Z) for a

[jQuery] Re: Hide/Show when Check Box is selected

2009-02-26 Thread nubcake
Hey! Is there any simple way to rewrite that so it works on ID:s instead on class? I have several checkboxes/hidden divs, but I only want to unhide the div that belongs to the clicked checkbox. Best regards. On Feb 18, 5:10 pm, Stephan Veigl stephan.ve...@gmail.com wrote: Hi Miguel, you can

[jQuery] Re: Hide/Show when Check Box is selected

2009-02-26 Thread Stephan Veigl
Hi the example is working on IDs (see the # in the selector). If you send a HTML snippet of your page, maybe I better understand what you mean. by(e) Stephan 2009/2/26 nubcake unniw...@gmail.com: Hey! Is there any simple way to rewrite that so it works on ID:s instead on class? I have

[jQuery] Re: Hide/Show when Check Box is selected

2009-02-26 Thread nubcake
Hello again! div class=container h1GENERAL/h1 div class=left input type=checkbox name=application[] value=101a class=tooltip href=#App #1spanInfo/span/abr div id=div101[SECRET FIELD FOR App #1]/div input type=checkbox name=application[] value=100a class=tooltip href=#App

[jQuery] Re: Hide/Show when Check Box is selected

2009-02-26 Thread Stephan Veigl
Hi, 1. Hide all your divs. Maybe you could add a distinguishable class to your hidden divs, this would make the selection more readable and precise. $(.left div).hide(); 2. Add a click handler to all your checkboxes. Get the ID from the value attribute and hide / show the according div.

[jQuery] Re: Hide/Show when Check Box is selected

2009-02-26 Thread nubcake
Thank you so much, it works like a charm! Best regards. On Feb 26, 3:01 pm, Stephan Veigl stephan.ve...@gmail.com wrote: Hi, 1. Hide all your divs. Maybe you could add a distinguishable class to your hidden divs, this would make the selection more readable and precise. $(.left

[jQuery] Re: hide/show answer based on question click

2009-02-19 Thread Brian Yanosik
So I was able to archive my desired effect with the following: script type=text/javascript $(document).ready(function(){ $('.answer').css(display, none); $(.question).click(function(){ var $this = $(this); if( $this.is('.question') ) {

[jQuery] Re: Hide/Show when Check Box is selected

2009-02-18 Thread Stephan Veigl
Hi Miguel, you can use the click trigger of the checkbox: form show secret: input id=checkbox type=checkbox/ div id=div secret field: input type=text / /div /from $(#div).hide(); $(#checkbox).click(function(){ if ( this.checked ) { $(#div).show(); } else {

[jQuery] Re: .hide() and .show(), will change the layout of my page...

2009-02-17 Thread James
Yes, show()/hide() does change the display properties. There's no function in jQuery to change the visibility, but you can use the basic css() function to change it: $(element).css('visibility', 'hidden'); or for multiple: $(element).css({visibility:'hidden', backgroundColor:'black'}); On Feb

[jQuery] Re: .hide() and .show(), will change the layout of my page...

2009-02-17 Thread Merrick Christensen
You can also animate the effect with animate() if you need help doing this let me know.

[jQuery] Re: .hide() and .show(), will change the layout of my page...

2009-02-17 Thread GrootBaas
Thanks Guys, it worked like a charm. The page layout does not change anymore.

[jQuery] Re: hide column problem

2009-02-10 Thread Halmen Istvan
I did it this way: $(table).find('th:nth-child(' + colIndex + '), td:nth-child(' + colIndex + ')').hide(); Istvan

[jQuery] Re: hide()

2009-02-08 Thread Aaron Gundel
http://www.w3.org/TR/html4/struct/global.html#adef-id HTML standards state that the id attribute should be unique in an html document. Use class or somesuch. Then you can do something like $(.trContactInfo).hide() and it will hide everything. A. Gundel On Sun, Feb 8, 2009 at 1:30 PM,

[jQuery] Re: hide()

2009-02-08 Thread WebAppDeveloper
Great, thank you very much, Aeron. Using class as you suggested is what I'll do. Aaron Gundel wrote: http://www.w3.org/TR/html4/struct/global.html#adef-id HTML standards state that the id attribute should be unique in an html document. Use class or somesuch. Then you can do something

[jQuery] Re: Hide or show div depending on the value of radio button

2009-02-03 Thread Beres Botond
It's fairly simple to do. I haven't tested this piece of code, but it should work. $(div[id^=PrimaryBox] :radio).click(function() { var clicked_val = $(this).val(); var div_idstr = $(this).parent('div').attr('id') var group_number = div_idstr.substring

[jQuery] Re: Hide or show div depending on the value of radio button

2009-02-03 Thread Beres Botond
typo: group_numer = group_number On Feb 3, 10:31 am, Beres Botond boton...@gmail.com wrote: It's fairly simple to do. I haven't tested this piece of code, but it should work. $(div[id^=PrimaryBox] :radio).click(function() {      var clicked_val = $(this).val();      var div_idstr =

[jQuery] Re: Hide or show div depending on the value of radio button

2009-02-02 Thread James
I have no idea if this works or is a good way to do it, but hopefully gives you an idea $(function() { $(div[id^=SecondaryBox]).hide(); // hides all secondary boxes $(input[name^=MainStuff]).bind(click, function() { var selected = $(:checked, this).val(); // get value of

[jQuery] Re: Hide specific characters

2009-01-23 Thread Peter Edwards
Try this: $(.cartSummaryItem).each(function(){ $(this).html($(this).html().replace(/,[^]*/, ' ')); }); It takes the html content of the cartSummaryItem table cell, and replaces everything from the comma to the start of the View Cart link with a space, then resets the contents of the table

[jQuery] Re: Hide content until loaded

2009-01-17 Thread jQuery Lover
// fired right away $('tn-hide').css('display', 'none').addClass('tn-loading'); $(document).ready(function() { // fired on DOM ready }); Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 17, 2009 at 9:53 AM, Christine Masters cmast...@townnews.com wrote:

[jQuery] Re: Hide content until loaded

2009-01-17 Thread MorningZ
Why not do it with CSS? where css class tn-loading has display: none declared div class=tn-hide tn-loading Content you are hiding until document ready /div then $(document).ready(function() { //Do some stuff here //Done doing stuff, show the content

[jQuery] Re: Hide content until loaded

2009-01-17 Thread Saif ullah
*http://tinyurl.com/8rwmkr* On Sat, Jan 17, 2009 at 8:13 PM, MorningZ morni...@gmail.com wrote: Why not do it with CSS? where css class tn-loading has display: none declared div class=tn-hide tn-loading Content you are hiding until document ready /div then

[jQuery] Re: Hide content until loaded

2009-01-17 Thread jQuery Lover
Saif, do you have a point or is this spam? MorningZ, I am sure you did not have time to go into much details just like me with my first post :) Christine, MorningZ suggested (IMO) the best way to do it. Just keep in mind those users that do not have js enabled. Add some id or class to your body

  1   2   >