This topic is locked
[SOLVED]

 disabled field

7/10/2006 2:20:34 PM
PHPRunner General questions
adamdidthis author

HI,
I have one field called budgetno that appears on all my pages. I have four check boxes in the add and edit pages, is it possible to diable the budgetno field unless one of the check boxes are checked?
I have found the following javascript but you need to check and uncheck a box to make it work:

</script>

<script type="text/javascript">

function DisBox()

{

if(document.editform.disb.checked)

{

document.editform.value74.disabled=false

}

else

{

document.editform.value74.blur()

document.editform.value74.disabled=true

}

}

</script>
adamdidthis author 7/12/2006

Have sorted this, just needed some funky javascript.