javascript - Unable to get property 'FromDate' of undefined or null reference -
i have asp page jscript calendar in keep getting message below
****unable property 'fromdate' of undefined or null reference****
the code i've run is:
<input class=datebutton style="position: relative" onclick="showcalendar(this.form.fromdate.value, this, this.form.fromdate)" type=button value=" >>> " name=cmdshowcalendar> </td></tr>
the error message says this.form
undefined
or null
. means input doesn't belong form. either:
- put in
<form>
- use
form
attribute identify form belongs to - use other dom method find element trying reference
Comments
Post a Comment