Uncaught TypeError: Cannot read property ‘value’ of null


If you getting this error message in java-script, then you might be thinking that you have written some wrong syntax in java-script, but it is not the syntax problem, it is the problem with reading value of that Id which one you have given to read the values. For example in the below code i have given the wrong text-box Id to read the value then i will get this exception.