I wrote a javascript code so that when I clicked on an element in the form, there are hidden elements. The problem is when you open the site in the firefox browser the script works fine, but if you open it in chrome it does not work.
function focux() { document.getElementById('hidden_content').style.display = 'block'; document.getElementById('hidden_content2').style.display = 'none'; } function focux2() { document.getElementById('hidden_content2').style.display = 'block'; document.getElementById('hidden_content').style.display = 'none'; } <select name="" id=""> <option value="" onclick="focux()">1</option> <option value="" onclick="focux2()">2</option> <option value="">3</option> </select> <p id="hidden_content" style="display: none;">Bul focux()</p> <p id="hidden_content2" style="display: none;">Bul focux2()</p>