In a text box that accepts numbers as shown below, how to set the default value to 0?
<input name="smtpPort" type="number" id="smtpPort" size="30" maxlength="50" class="input-full" tabindex="4" value="{{model.PortNumber}}">
Although the value in the database is zero, it still shows 0 in the text box.
Any help would be appreciated.
javascript html angularjs
NiksJ
source share