Usually when I create a TypeScript application I follow an OOP + immutable data philosophy. So let’s suppose I have two classes with mutual reference, class A and class B. Now it’s impossible to create instance of class A, since class B is required in constructor to achieve immutability, and class B requires instance of class A. It’s required to
Tag: readonly
how can I disable everything inside a form using javascript/jquery?
I have a form that pop up inside a layer, and I need to make everything inside that form read only regarding what type of input it is. Anyway to do so? Answer This is quite simple in plain JavaScript and will work efficiently in all browsers that support read-only form inputs (which is pretty much all browsers released in