ASP.NET, code beneath VB
----------------------------------
I have adynamically generated checkbox list, and wanna make sure that minimum number of itmes have been selected
-----------------------
button.enabe=false
if minimum number of itmes have been selected then
enable button
else
reseve the button state
end
so i added an attribute
CBList.attributes.add("onclick","enableButton()")
in the HTML
<script language="vbs">
<!--
dim counter as integer
function enableButton()
counter+=1
if counter=minreq then
document.form1.button1.disabled=false
end if
end function
//--->
-------------
i keep gettin an error!!
----------------------------------
I have adynamically generated checkbox list, and wanna make sure that minimum number of itmes have been selected
-----------------------
button.enabe=false
if minimum number of itmes have been selected then
enable button
else
reseve the button state
end
so i added an attribute
CBList.attributes.add("onclick","enableButton()")
in the HTML
<script language="vbs">
<!--
dim counter as integer
function enableButton()
counter+=1
if counter=minreq then
document.form1.button1.disabled=false
end if
end function
//--->
-------------
i keep gettin an error!!