JSFiddle - React, Tailwind, and code Playground

by Couto

HTML

<div style='float:left;'>
    <script>
        $(document).ready(function(){
            $('#disponibilidade_new').change(function(){
                if($('#disponibilidade_new').val() == 1)
                {
                    document.getElementById('preco_venda_propriedade').style.display='inline';
                    document.getElementById('preco_aluguer_propriedade').style.display='none';
                }
                else if($('#disponibilidade_new').val() == 2)
                {
                    document.getElementById('preco_venda_propriedade').style.display='none';
                    document.getElementById('preco_aluguer_propriedade').style.display='inline';
                }
                else if($('#disponibilidade_new').val() == 3)
                {
                    document.getElementById('preco_venda_propriedade').style.display='inline';
                    document.getElementById('preco_aluguer_propriedade').style.display='inline';
                }
            });
        });
    </script>
    <input type='hidden' id='disponibilidade_apoio_new' value='' />
    
    <select name='disponibilidade_new' id='disponibilidade_new' style='width: 141px;'>
        <option value=''></option>
        <option value='1'>venda</option>
        <option value='2'>aluguer</option>
        <option value='3'>venda/aluguer</option>
    </select>
</div>
&nbsp;
<div id='preco_venda_propriedade' style='float:left; margin-left: 17px; display: none;'>
    <span class='texto_formularios' style='margin-top:-4px;'>Valor Venda:</span>
    <input class='input_text' name='valor_venda_propriedade' value='' style='width:90px;' /> <span class='texto_formularios' style='font-size: 15px;'>&euro;</span>
</div>
<div id='preco_aluguer_propriedade' style='float:left; margin-left: 17px; display: none;'>
    <span class='texto_formularios' style='margin-top:-4px;'>Valor Aluguer:</span>
    &nbsp;<input class='input_text' name='valor_aluguer_propriedade' value=''...