0 Answer
  • 0

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /var/www/html/cnasolution/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

hide / show multiple div

I would like to hide / show some div box, by clicking one text line. To summarize, it must do something like Android File Explorer.

enter image description here

enter image description here

These 2 pictures show the difference when I click on the Mes Vidéos text field.

Here is a part of my current code :

    function folderChange(param) {        var video=document.getElementById('v');        var file=document.getElementById('f');        if(param==1) {          video.style.display = "block";          file.style.display = "none";        }        else {          file.style.display = "block";          video.style.display = "none";        }        }
    .filefolder {        display: none;      }      .videofolder {        display: block;      }
Flashdisk > Mes Fichiers
Flashdisk > Mes Fichiers > Mes Vidéos

Mes Vidéos

What I'm expected to do is to change the display value of videofolder and filefolder when I click on Mes Vidéos, but on the screen, nothing change (or just the path display).

I'm pretty newbie on HTML and Javascript.

NB : there is no file reader currently, I'm just working on the display.

Download script demo [LINK]
Download script demo [LINK 2] Download script demo [LINK 2]