1
I’m trying to show two divs
(container-imagem-upload
, container-tipo-video
), but it didn’t work. It’s showing the div
and disappearing.
CSS
.container-tipo-video {margin-top: 50px; display: none;}
.container-tipo-video input{text-align: center;}
.container-tipo-video video{margin-top: 30px;}
.container-imagem-upload{display: none;}
HTML
<div id="center">
<div id="selecionar">
<h1>Selecione o tipo</h1>
<form>
<input type="radio" name="opcao" value="op_video" id="op_video">Video
<input type="radio" name="opcao" value="op_imagem" id="op_imagem" checked>Imagem
<input type="submit" id="btn_selecionar" >
</form>
</div>
<div class="container-tipo-video" >
<input type="text" id="mudarVideo" value="">
<input type="button" id="btn-insere" value="Inserir novo video"/>
<video width="100%" height="" id="meuVideo" >
<source src="" id="tv_main_channel">
</video>
</div>
<div class="container-imagem-upload">
<form action="uploadArquivo.php" method="post" enctype="multipart/form-data" id="UploadForm">
<input name="arquivoUpload" type="file" /><br>
<input type="submit" value="Upload">
</form>
</div>
<span id="output"/>
</div>
jQuery
$('#btn_selecionar').click(function(){
$('.container-imagem-upload').show();
$('.container-tipo-video').show();
});