Re: [jQuery] remove( String expr )

2007-03-12 Thread MARIO MOURA

Just To complete my issue:


at the end of my switch have

 if (class_id == "0")
   $("#class-fields").hide("slow").empty();
 else
   $("#class-fields").empty().append(cfields).show(speed);


Regards

Mario

2007/3/12, MARIO MOURA <[EMAIL PROTECTED]>:


Hi Thanks All. It is working

Now appear another problem.

My Jquery is

  switch (class_id) {
case "6":
cfields =
$("div").children("#edit-taxonomy-6");
$("#edit-taxonomy-6").css("visibility", "")
  break;
case "4":
cfields =
$("div").children("#edit-taxonomy-4");
$("#edit-taxonomy-4").css("visibility", "")
  break;

It is fine on the first time
return 3 => I can see my form
but if user click "case=4" and back to case "3"
My form dont render it is invisble again.

JQuery can Help me?



2007/3/12, Alex Cook <[EMAIL PROTECTED]>:
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of MARIO MOURA
> Subject: [jQuery] remove( String expr )
>
> I need
>
> Before:
>  id="edit-taxonomy-6" >
>
> After:
> 
>
> I need remove style="visibility:hidden" from id="edit-taxonomy-6"
>
> I am newbie in JQuery
>
> I tried a lot of things.
>
> Regards
> --
> Mário
>
> -
>
> Mario,
>
> Are you attempting to remove the visibility rule in order to show the
> select element?  If so, this should work for you:
>
> $("#edit-taxonomy-6").css("visibility","visible");
>
> What's going on here is pretty basic.  First, we grab the select element
> via its ID attribute[1], then we edit its CSS entries (the style
> attribute)[2] and set the visibility as desired.
>
> [1] - http://docs.jquery.com/DOM/Traversing/Selectors
> [2] - http://docs.jquery.com/CSS
>
> HTH
>
> -ALEX
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>



--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remove( String expr )

2007-03-12 Thread MARIO MOURA

Hi Thanks All. It is working

Now appear another problem.

My Jquery is

 switch (class_id) {
   case "6":
cfields =
$("div").children("#edit-taxonomy-6");
$("#edit-taxonomy-6").css("visibility", "")
 break;
   case "4":
cfields =
$("div").children("#edit-taxonomy-4");
$("#edit-taxonomy-4").css("visibility", "")
 break;

It is fine on the first time
return 3 => I can see my form
but if user click "case=4" and back to case "3"
My form dont render it is invisble again.

JQuery can Help me?



2007/3/12, Alex Cook <[EMAIL PROTECTED]>:


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of MARIO MOURA
Subject: [jQuery] remove( String expr )

I need

Before:


After:


I need remove style="visibility:hidden" from id="edit-taxonomy-6"

I am newbie in JQuery

I tried a lot of things.

Regards
--
Mário

-

Mario,

Are you attempting to remove the visibility rule in order to show the
select element?  If so, this should work for you:

$("#edit-taxonomy-6").css("visibility","visible");

What's going on here is pretty basic.  First, we grab the select element
via its ID attribute[1], then we edit its CSS entries (the style
attribute)[2] and set the visibility as desired.

[1] - http://docs.jquery.com/DOM/Traversing/Selectors
[2] - http://docs.jquery.com/CSS

HTH

-ALEX

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remove( String expr )

2007-03-12 Thread Alex Cook
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MARIO MOURA
Subject: [jQuery] remove( String expr )

I need 

Before:


After:
 

I need remove style="visibility:hidden" from id="edit-taxonomy-6" 

I am newbie in JQuery 

I tried a lot of things.

Regards
-- 
Mário  

-

Mario,

Are you attempting to remove the visibility rule in order to show the select 
element?  If so, this should work for you:

$("#edit-taxonomy-6").css("visibility","visible");

What's going on here is pretty basic.  First, we grab the select element via 
its ID attribute[1], then we edit its CSS entries (the style attribute)[2] and 
set the visibility as desired.

[1] - http://docs.jquery.com/DOM/Traversing/Selectors
[2] - http://docs.jquery.com/CSS

HTH

-ALEX

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remove( String expr )

2007-03-12 Thread MARIO MOURA

I love you.

Thanks a lot . You dont imagine how I am happy now. It is my last line of my
code.

Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks,

Woww. Cool! Amazing, Fantastic.

Best Regards

Mario
macm

2007/3/12, Klaus Hartl <[EMAIL PROTECTED]>:


Joan Piedra schrieb:
> Just change it to the default value.
>
> $('#edit-taxonomy-6').css('visibility','visible');

You can also completely remove the inline style by passing an empty
string (that may be useful for printing in other situations):

$('#edit-taxonomy-6').css('visibility', '');


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remove( String expr )

2007-03-12 Thread Klaus Hartl
Joan Piedra schrieb:
> Just change it to the default value.
> 
> $('#edit-taxonomy-6').css('visibility','visible');

You can also completely remove the inline style by passing an empty 
string (that may be useful for printing in other situations):

$('#edit-taxonomy-6').css('visibility', '');


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remove( String expr )

2007-03-12 Thread Joan Piedra

Just change it to the default value.

$('#edit-taxonomy-6').css('visibility','visible');


On 3/12/07, MARIO MOURA <[EMAIL PROTECTED]> wrote:


I need

Before:


After:


I need remove style="visibility:hidden" from id="edit-taxonomy-6"

I am newbie in JQuery

I tried a lot of things.

Regards
--
Mário
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] remove( String expr )

2007-03-12 Thread MARIO MOURA

I need

Before:


After:


I need remove style="visibility:hidden" from id="edit-taxonomy-6"

I am newbie in JQuery

I tried a lot of things.

Regards
--
Mário
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/