SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Aug 2004
    Location
    vi
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool how to locate Iframe DIV id find and Hide..

    I am trying to get to see if a specific label id HTML is '*gender' is visible and if it is hide another ID located on the parent to the iframe.

    Please advise:

    Here is my snippet of code.

    Code:
                var TabLink = ($('#registerIframeArtist').contents().find('#jsnamemsg').html() == '*Gender');
    			//alert(TabLink);
    			if(TabLink){
    			 $('#tab-holder').hide();
    			}

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,999
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    Could you give us a clue as to what HTML goes with that code.
    Have a look at this to find out how to make an example we can reproduce your issue with.

  3. #3
    SitePoint Addict
    Join Date
    Aug 2004
    Location
    vi
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool need help with jquery if and div being visibile

    Tried Several ways:

    Code:
    				joms.jQuery("#registerIframeArtist").load(function(){
    				var TabLink =  joms.jQuery(this).contents().find("#jsnamemsg").html();
    				var getStyle = TabLink.match("visibility: hidden"); 
        			 if(joms.jQuery(getStyle == "visibility: hidden")) {
    				    joms.jQuery('#tab-holder').show()
    				 }
    				 else {
    				    joms.jQuery('#tab-holder').hide()
    				 }
    				});
    I have placed alerts on getStyle, comes back with "NULL"..

    I am lost

  4. #4
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,999
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    Did you read the post I linked to?
    We cannot help you without being able to reproduce your issue, either via a link to a web page or by you posting sufficient code (as outlined here).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •