JSFiddle - React, Tailwind, and code Playground
HTML
Imagem:<input type="radio" class="chk" name="Conteudo" value="1" />
Video: <input type="radio" class="chk" name="Conteudo" value="2" /><br/>
<div id="box"></div>
CSS
.texImg, .texVid {
display: none;
}
JavaScript
$(document).ready(function() {
$('.chk').live('click',function() {
var valor;
var val;
var box = $("#box");
var imagem = "<p class='textImg'>Inserir Imagem:<input type='file' name='Arquivo' size='53'/></p>";
var video = "<p id='texVid'>Inserir video: <input type='text' name='Video' size='56'/></p>";
//Executa Loop entre todas as Radio buttons com o name de valor
$('input[name=Conteudo]').each(function(){
//Verifica qual está selecionado
if ($(this).is(':checked')){
valor = parseInt($(this).val());
if(valor == 1){
box.html(imagem);
} else{
box.html(video);
};
};
});
});
});