This code works <script language=vbscript> Function updatedrop() if data.role.value = "1" then appl.innerHTML="<select name=appls multiple><option>Microsoft Project</option><option>Microsoft Visio</option><option>Microsoft Word</option></select>" else appl.innerHTML="<select name=appls multiple><option>Microsoft Project</option><option>Microsoft Visio</option><option>Microsoft Word</option><option>Microsoft Excel</option></select>" end if end function </script> Need to add another innerHTML <script language=vbscript> Function updatedrop() if data.role.value = "1" then appl.innerHTML="<select name=appls multiple><option>Microsoft Project</option><option>Microsoft Visio</option><option>Microsoft Word</option></select>" else appl.innerHTML="<select name=appls multiple><option>Microsoft Project</option><option>Microsoft Visio</option><option>Microsoft Word</option><option>Microsoft Excel</option></select>" else appl.innerHTML="<select name=appls multiple><option>Microsoft Project</option><option>Microsoft Visio</option><option>Microsoft Word</option><option>Microsoft Excel</option></select>" end if end function </script> This throws a error with the if statement. Any ideas?
What browser from which weird dimension supports vbscript? Seriously - use JS or something. You have two 'else' statements - use one `If', one `ElseIf', and make the last `Else'
You are setting exactly the same value to appl.innerHTML, with the third else statement? For one there cant be a third else statement, you need to use else if... But that would not be necessary.... because they would both do the same thing. So one else statement is all that is required.