Thursday, 15 August 2013

Disabling Button Javascript and C# -


I have a call in my code that looks like this:

  bool isQtyValid = True; Boole disabled = false; External (parameters) {// If setting isQtyValid (IsQtyValid!) Disabled = true; Page Client script. Registry startup script (this .gateType ()), "function", string.format ("SetBootenStatus ('{0}')", disabled.tostring (.) Toolware ()), true); }   

Then my javascript looks like this:

  function setButtonStats (disabled) {var bb = document.getElementsByClassName ('buttonSubmit'); For some reason (var i = 0; i & lt; bb.length; i ++) (BB [i] .disabled = disabled;}}   

For some reason this is only one The path will work. If it is set to disabled = true, then it will not go back to being enabled, and if it is set to disabled = false, then it will not go back to being disabled. Whether it is being set correctly or not, and it changes the false and false truth from the right when it should be, but this button changes the disabled status

Do I have some small things that you can see?

Thanks for any help, you can give me.

> ) > "SetButtonStatus ({0})" // < - SetButtonStatus (true)

No comments:

Post a Comment