www.webdeveloper.com
Results 1 to 5 of 5

Thread: how to locate Iframe DIV id find and Hide..

  1. #1
    Join Date
    May 2006
    Posts
    22

    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
    Join Date
    May 2006
    Posts
    22

    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

  3. #3
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,111
    You're tossing around a lot of terms here. What do you mean by label? The label HTML element?

    <label>Label Text here</label>

    Can you provide some HTML and explaining what piece you're trying to target?
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

  4. #4
    Join Date
    May 2006
    Posts
    22
    Here is HTML we want to Hide is field has visible setting to it:

    Code:
    		<div id="tab-holder">
    		<input type="radio" name="profiletypes" id="profiletypeAvatar" value="1" class="fan"> <h3 id="sign-in-tab" >fan</h3>
    		<input type="radio" name="profiletypes" id="profiletypeAvatar" value="2" class="artist"> <h3 id="register-tab" class="active"> Artist</h3>
    		<input type="radio" name="profiletypes" id="profiletypeAvatar" value="5" class="vip">  <h3 id="vip-tab"> V.I.P</h3>
    		</div>

  5. #5
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,111
    What do you mean by "visible setting?"

    Are you trying to hide all that HTML?

    If so, it's simply

    Code:
    $('#tab-holder').hide();
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles