Hi I have tried a search but could not find an answer to my problem.. Im not very good with Javascript or JQuery so please be gentle with me lol
I have a form with multipal fields and what im tryin to do is hide a button when one of the fields has been changed.
I understand this is a OnChange type event but not sure how to go about if one of multipal fields have been changed to then hide the element
Heres what I have so far
<script type="text/javascript">
var opt1 = document.getElementById('BorderRange');
var opt2 = document.getElementById('bs');
var opt3 = document.getElementById('tb');
var opt4 = document.getElementById('wf');
opt1.onchange = function() {
document.getElementById('pf').style.display = 'none';
}
</script>
So this code works if one of the fields has been changed ("BorderRange") but is there a simple way of linking all vars to one onchange function?
Something like opt1.onchange && opt2.onchange && opt3.onchange = function()
for example
many thanks