[Solved] PLEASE assist me.. RE: *FORM FIELDS* I want to Hide() my “type=text box” until the Other option is chosen in the dropdown option

Two main issues with your original code: 1- Using a wrong selector for the onchange event, replace “Other” by “#title” 2- You were checking if the value is equal to “Other” instead of the “other” you have in your HTML. Be careful, string comparison is case-sensitive! Below is a working snippet after applying these two … Read more

[Solved] Trigger callback after clicking N times

Without jQuery: document.addEventListener(“DOMContentLoaded”, function(event) { var button = document.getElementById(‘click_me’); var elem = document.getElementById(‘message’); var count = 0; button.addEventListener(‘click’, function(e) { e.preventDefault(); count++; if(count == 5){ elem.style.display = ‘block’; } }, false); }); #message { background: #0f0; display: none; padding: 10px; } <button type=”button” id=”click_me”>Click Me</button> <div id=”message”>Hello World</div> With jQuery: $(function() { var count = … Read more