I've been trying this for days. JavaScript isn't even firing. Any Suggestions?? I'm using it with Coldfusion.
<script language="JavaScript" type="text/javascript">
function hide(divToHide) {
var me = document.getElementByID(divToHide);
if (me.style.display == "none"){
me.style.display = "block";
} else {
me.style.display = "none";
}
}
</script>
<div class = "col-md-12">
<h4>
<label class="radio-inline">
<input type="radio" value=1 name="decision" class="grey" onClick="hide('hideThis');">
<span style="color:red">Reject</span></label>
<label class="radio-inline">
<input type="radio" value=2 name="decision" class="grey" onClick="hide('hideThis');">
<span style="color:green">Approve</span></label>
</h4>
</div>
<div id="hideThis" style="display:none;">
<br>
<button class = "btn btn-blue btn-block" type = "submitAssign" name ="submitAssign" id = "submitAssign">
Assign <i class = "fa fa-arrow-circle-right" ></i>
</button>
</div>
<script language="JavaScript" type="text/javascript">
function hide(divToHide) {
var me = document.getElementByID(divToHide);
if (me.style.display == "none"){
me.style.display = "block";
} else {
me.style.display = "none";
}
}
</script>
<div class = "col-md-12">
<h4>
<label class="radio-inline">
<input type="radio" value=1 name="decision" class="grey" onClick="hide('hideThis');">
<span style="color:red">Reject</span></label>
<label class="radio-inline">
<input type="radio" value=2 name="decision" class="grey" onClick="hide('hideThis');">
<span style="color:green">Approve</span></label>
</h4>
</div>
<div id="hideThis" style="display:none;">
<br>
<button class = "btn btn-blue btn-block" type = "submitAssign" name ="submitAssign" id = "submitAssign">
Assign <i class = "fa fa-arrow-circle-right" ></i>
</button>
</div>