how can I set textbox set to 0 if textbox is empty
Posted on 2014-09-16
my textbox is dynamic, upon creating I set the view value to zero and the user can be able to create then upon updating the textbox, I want to set the value into zero if the textbox was empty by user how can I solve this problem using jquery or condition?
if(textbox == empty)
@model = 0