.net - how to disable the save button -


I have a month's drop down and save button, I want to disable the saving button if the month was down from the drop down value In the asp.net webpage, selected as the previous month

If this is the only option to select There is a regular dropdown with, Onchange-function can be shortend

  function checkDate () {var doc = document; Var btn = doc.getElementById ('& lt;% = btnSave.ClientID% & gt;'); Var SLC = doc.getElementById ('& lt;% = ddlMonths.ClientID% & gt;'); Btn.disabled = (slc.selectedIndex & lt; (new date ()). GetMonth ()); }  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -