in jsp i am writing java script. Please help me how to do null check in javascript? i have drop down list. onchange some action should happen. pleae find below code.
<select onchange="openPage(this.value)">
here some times this.value can be null. simply i need to do null check.when it is not null then only it should call openPage() method. please help me how to solve?
Thanks!
<select onchange="javascript:if(this.value !== null) openPage(this.value)">?