How to hide the div tags when the value inside is empty?

I'm creating a tab bar using jQueryTabs.

I want to hide a tab when the value inside is empty.

It is perfectly feasible to hide the real on the ground when notting to show is, however, the tab is always in the tabs on top.

Here is the code:

as you can see in the tabs 4 and 5 I'm hidding values that are inside the field is it not there no. The tab is still there

 <script type="text/javascript">
// BeginOAWidget_Instance_2140022: #jQueryTabs




          $(function() {
      $("#jQueryTabs").tabs({
                    event:"click",
                    collapsible: false,
                    selected:'0',
                    fx: { opacity: 'none', duration: 1 }
        }).tabs( "none" , 1 , false ); 
          });


// EndOAWidget_Instance_2140022
       </script>
      <div id="jQueryTabs">
        <ul>
          <li><a href="#tabs-1">Description</a></li>
          <li><a href="#tabs-2">Specification</a></li>
          <li><a href="#tabs-3">Video</a></li>
          <li><a href="#tabs-4">Audio</a></li>
          <li><a href="#tabs-5">Downloads</a></li>
        </ul>
        <div id="tabs-1">
          <p><?php echo $row_Recordset1['Full_Description']; ?>
        </div>
        <div id="tabs-2">
          <p><?php echo $row_Recordset1['Specification']; ?></p>
        </div>
        <div id="tabs-3">
          <p><?php echo $row_Recordset1['Video']; ?></p>
        </div>
        <div id="tabs-4">
          <p><?php if (!is_null($row_Recordset1['Audio1'])) { ?><a href="<?php echo $file_wav.$row_Recordset1['Audio1']; ?>"><img src="files/Images/audio_image1.jpg" width="50" height="50" ></a><?php } ?></p>
        </div>
        <div id="tabs-5">
          <p><?php if (!is_null($row_Recordset1['Brochure'])) { ?>
          <a href="<?php echo $file_pdf.$row_Recordset1['Brochure']; ?>"><img src="files/Images/pdf_image1.jpg"></a>Brochure<?php } ?></p>
          <p><?php if (!is_null($row_Recordset1['User_Guide'])) { ?><a href="<?php echo $file_pdf.$row_Recordset1['User_Guide']; ?>"><img src="files/Images/pdf_image1.jpg"></a>User Guide<?php } ?></p>
        </div>

RiaandSteve1 wrote:

Thanks for your quick response,

I tried this,

 

">

I'm not able to click on the tab now, but he is always visible (in this case telling audio). I must be something to do with this code

  • Audio
  • above the actual div for the tab.  Do not know how to remove the tab

    Well Yes if you want to hide the tab too then you must surround the

  • tag in a similar way:

  • Audio
  • Tags: Dreamweaver

    Similar Questions

    • How to extract the values inside the jquery element dialogue modal rigion

      Hi all

      My requeriment is

      Click report link open jquey editable modal dialog and display all values with respective ID values.

      1.I used page header HTML code below

      < link rel = "stylesheet" href = " " http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/themes/

      "Redmond/jquery - ui.css" type = "text/css" / >

      " < script src =" http://AJAX.googleapis.com/AJAX/libs/jQuery/1.4.2/jQuery.js "> < / script > .

      " < script src =" http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/jQuery-UI.js "> < / script > .

      < script type = "text/javascript" >

      $(function() {})

      () $('#ModalForm').dialog

      {

      modal: true,

      autoOpen: false,

      Width: 600

      buttons: {}

      Back: function() {}

      closeForm();

      } ,

      Approve: function() {}

      addPerson();

      },

      Return_For_Correction: function() {}

      addPerson();

      },

      Reject: function() {}

      addPerson();

      }

      }

      });

      });

      function openForm (TrxId)

      {

      Alert (TrxId);

      $s ('P3_x_trx_id', TrxId);

      $('#ModalForm').dialog ('open');

      }

      function closeForm()

      {

      $('#ModalForm_input[type="text"]').val (»);

      $('#ModalForm').dialog ('close');

      }

      function addPerson()

      {

      var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is updateStatus', 0);

      ajaxRequest.add ('P3_status', $v ('P3_status'));

      var gReturn = ajaxRequest.get ();

      If (gReturn)

      {alert (gReturn)}

      on the other

      {ajaxRequest = null;

      closeForm();

      doSubmit ('SEARCH'); }

      }

      < /script >

      2. static html Id - ModalForm region

      3. region html Header-

      < div id = "ModalForm" title = "View details" style = "display: none" >

      4.footer-

      < / div >

      5. in the same page created 'extraction of line auotomatic' process by using the value of key PK P3_trx_id

      6 Jquery modal region is created but not showing values.

      Hi Dan,.

      You must create a separate page for your modal dialog box,

      Call this dialog in the parent page and pass the value modal page in some hidden item and use the value of the element to retrieve details on the modal dialog box.

      1. change your report Page-> under the header HTML

      
      

      2. change the link from which column you want to call the modal dialog box.

      Target: URL

      URL: javascript:f_modalDetails(#ID#);

      instead ID, pass the value that you want to pass to the modal dialog box that shows you the data associated with the selected line.

      3. go to the page of the form (modal dialog)

      Change your close button that closes the modal dialog box.

      Action: Redirect URL

      Target URL: javascript:window.parent.closeModalDialog();

      Close the Model dialog box using the "submit" button press

      4. create a branch on the processing section of the Page of the page of the modal dialog box

      Branch point: After Processing (After computation, validation and Processing)

      Target type: Page of this Application

      Page: Redirect to the same page

      Request: CLOSE_MODAL

      When you press the button: select the Send button

      NOTE: Branch must be before all the unconditional branch on this page

      5. create a dynamic Action on the Page modal dialog box

      Event: Page load

      Action: Run the JavaScript Code

      Code: javascript:window.parent.closeModalDialog();

      Kind regards

      Jitendra

    • How to extract the values of XMLTYPE column,

      SQL > create table temporary global xmtype_tab (xmlfile xmltype);

      SQL > select * from all_directories;

      SYS RESTOREDIR/home / / dbimptask /.

      insert into xmtype_tab values (xmltype (dbms_xslprocessor.read2clob ('RESTOREDIR ','LAS_SETUP.xml ')));

      1 line of creation.

      SQL > select * from xmtype_tab;

      XMLFILE
      --------------------------------------------------------------------------------
      <? XML version = "1.0"? >
      rowset <>
      < ROW >
      < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >


      How to extract the values inside each tag?


      XML file has the following data...


      rowset <>
      < ROW >
      < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >
      < > 9600 BAUD_RATE < / BAUD_RATE >
      < ACK_TIMEOUT > 1 < / ACK_TIMEOUT >
      < TUBE_TRAVEL_LIMIT > 4 < / TUBE_TRAVEL_LIMIT >
      < SEND_SID_TIMEOUT > 1 < / SEND_SID_TIMEOUT >
      < INDEX_Q_TIMEOUT > 2 < / INDEX_Q_TIMEOUT >
      < HW_HANDSHAKING > 1 < / HW_HANDSHAKING >
      < / ROW >
      < / LINES > ';

      I use the Oracle 10.2.0.3 version...

      Why does this work?

      You are missing the tag of the ROWSET:

      select extractvalue (xmlfile, '/ROWSET/ROW/BAUD_RATE') baud_rate
        from xmltype_tab
       where existsnode (xmlfile, '/ROWSET/ROW/BAUD_RATE') = 1;
      
    • How to read the value attribute and put inside?

      What happens if we want to read the attribute value? And want to put the data of runtime on the value of the attribute as

      < psoID ID = "user id" / >

      How to get the value of the ID as the user id. And how to put the run value on it?

      I can think about is that

      /psoID/@ID/value GOLD psoID/@ID/*[local-name () = 'value']

      And how to put the value inside ID ="? »

      Thank you

      Because we are dealing with a structure of type anyType you must use the functions of node (local name) in combination with predicates ([]) to read or write values (node) of the element:

      To read the value for example use the copy rule:




      This wil read:

      /processResponse/result/psoID/@ID

      on the message:





      You will see the value 'B '.

      To write, you use:




      Kind regards

      Melvin

    • How to hide the false underscores (_) of af: table when you use the check boxes

      Greetings,

      I was wondering, how to hide the String _ of af: table when a checkbox control are false (0) in JDeveloper 11.1.2.4.0?

      If the box is true, then he have a symbol 'tick' and that was correct, but if its false (0) instead of projection

      nothing, it shows a string of underscore (_) and it looks bad.

      OK I found the solution after all.

      Was indeed a skin problem because I was using the default merge skin and he added this code:

      AF | selectBooleanCheckbox: {no selected icon

      Content: url(/afr/fusionFx-v2/checkMark_NS_readonly.png)

      }

      So, on my current skin, I replace it with this:

      AF | selectBooleanCheckbox: {no selected icon

      content: inhibit;

      }

      Thank you to notice me in the right direction.

    • How to hide the names of the recipients when I send an email to many people?

      I'll send a message to a lot of people I know, and I think that some of them would rather not showing e-mail addresses. How to hide the?

      You use the BCC (blind carbon copy) field instead of the CC field to prevent one of the most complete list.

      Probably there is a button on the edit page to reveal this field.

    • How to hide the credit card fields when PayPal is selected in the layout of catalyst fund business

      Who need to learn how to hide the fields of PayPal credit card is selected in the layout of the entry of catalyst business. Some old messages from Adobe (2012) on this subject has not provided clear solutions. Layout options page BC number of registration or the tutorials of customization that I could find. Can you please point me in the direction or there may be a few simple html, css, javascript that would do the trick. Thank you

      The script of BC for this form does by default. If it does not that this code may have removed or you have a form of script errorr there.

    • How to hide the button only break on the toolbar at run time

      Hello

      I had to hide all the buttons as run, run streaming, vi and other abandoned by accessing the properties VI and by unchecking the corresponding options.

      When I run the vi, everything becomes hide except the pause button and I found no option to hide manually as well as programmatically.

      can someone tell me how to hide the pause button. I have an urgent need for same.

      Thank you best regards &,.

      Samriddh Sarbalhi

      Hello

      You need...

      Properties of VI--> execution

      Turn off "enable debugging".

      Rod.

    • How to hide the images used in imovie 10.1.2?

      I am a new user of iMovie and use the latest version. How to hide the photos that I already added to the film? Moreover, that mean the purple and orange lines on the photos? Thank you!

      You can not hide, but the orange lines at the bottom of the clips in the media pane show what parts of clips have been used in the scenario, if you can easily avoid reuse them if that's what you want to do.  The purple lines at the top of some parts of some clips show moved excessive (which cannot be stabilized).

      Geoff.

    • How to hide the menu item 'bookmarks '?

      Firefox 5.0.1
      At the menu bar: 'File', 'Edit', 'View', 'History', "Bookmarks", etc.
      How to hide the element of "bookmarks"?
      I have the add-on PLAINOLDFAVORITES installed and
      I forgot how with v3.6.18.

      Thank you very much

      Click the Firefox button and click on Add-ons -> Add-ons Manager, tab opens-> go to Control Panel Extensions-> select your add-on "Favorite PlainOld" , click Options

      Check and tell if its working.

    • How to hide the sidebar with other files of Notes?

      OS X El Capitan (10.11.3)

      I am trying to read a PDF Acrobat Pro and take notes with Notes in my mac, side by side.

      I would like to know how to hide the sidebar on the left of Notes, where are the names of the other file.

      I don't want the files, I already went to 'View' and you click "hide files".

      I can just see the writing of the Notes area while sharing the screen with the document I read in Acrobat Pro.

      Looks like a basic feature which Apple or Adobe Acrobat Pro should have, but I can't seem to find it.

      Looked for other solutions to the App Store, but what I've found is a bit expensive.

      I appreciate any assistance.

      I asked that your thread moved to the El Capitan forum.

    • How to hide the photos in my iPhone 6 more?

      Hello Apple!

      I searched for tutorials on how to hide the photos in my "Photos" application They say that, I will select a photo, then press on hold... then action will pop up with the options "Copy" and "hide".

      To do this, do not show the "copy" and "Hide" options.

      Why? Is there a function I need to activate?

      Thank you.

      Hello Apple!

      It is a user at tech support forum, not Apple.  Nobody is here saying 'why' Apple does or doesn't do anything.

    • How to hide the submenu in FoxPro9?

      How to hide the submenu in FoxPro9?

      Try the FoxPro Forum

      http://social.msdn.Microsoft.com/forums/en-us/home?Forum=visualfoxprogeneral

      Don

    • How to hide the sim 1 &amp; 2 Xperia Z3 double icons

      I have Xperia Z3 D6633 double lollipop 5.0.2.
      How to hide the sim 1 & 2 status bar icons and save more space for other APA as a player, WiFi, alarm, calendar...?
      I turned off the State of the battery with the endurance and the percentage of the cause of the battery of the overcrowded state bar!

    • How to hide the WLAN icon, which is untouchable?

      * Original title: Ghost WLAN icon

      Hello

      I have a question. I use bluetooth and other wireless connections.

      How to hide the WLAN icon, which is untouchable?

      Hello

      Thanks for posting your query in Microsoft Community.

      Let me ask you;

      • Remember to make any particular changes in the computer before you see this icon?

      Now, I ask you to refer to the information provided in the link below thread by JCarp responded on 29 June 2011 and follow the suggestions.

      Desktop icon question - great, WLAN icon on the desktop

      Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

    Maybe you are looking for

    • MS

      Hello I upgraded my ipad iOS 10 on Sunday, September 18, 2016. Tonite I tried to connect my ipad to itunes via my windows laptop but it says itunes could not connect to the ipad because an invalid response was received from the device. How to fix? Th

    • When closed how can I close each tab multiple/all tabs

      I click on the X to close and the pop-up choice is in fact the number of open tabs (3 or 4, etc.) or cancel. When I use Internet Explorer I can close all of them at once. 'close all tabs or just this one' until all are closed

    • New installation 8.1 Windows black screen after logo

      I met a black screen when installing Windows from a USB Pendrive 8.1 after the logo at the beginning. After research on internet and do not find the answer, I had a bright idea: format my hard drive (SSD), I had Windows 7 installed on it. I removed t

    • viruses in the process 7408

      Info by AVG antivirus. Computer acting crazy, getting a few apparently false pop-up windows. Restore will not work.

    • Windows 10 (1607)

      Greetings! I'm having a problem that more than likely I am causing but I thought I'd run it by you.  I'm trying to build a picture of imageassist in a virtual machine using the new anniversary edition of windows 10 and I get a constant kernel panics