I have a function which allows the number of buttons selected depending on the number selected from the drop down menu. Problem is that this code works in all of the major browsers except for Internet Explorer (No Suprise). For example if user chose the number 3 from the dropdown menu, then user can only select 3 buttons.

Why is it not working in Internet explorer and what can be used to make it work in Internet Explorer?

Another way to find your errors is to place alert() statements in your code to check values of variables and if parts of your code are reached. A couple of alert()'s in your code should quickly tell you where your problem is.