jQuery-Mask-Plugin icon indicating copy to clipboard operation
jQuery-Mask-Plugin copied to clipboard

JSP object with attribute value 0 display problem

Open mhdaouas opened this issue 7 years ago • 1 comments

I have the following HTML input element which value is 0 and is retrieved from a JAVA JSP object (a jQuery mask is applied cause it's an amount with thousand separators):

<input class="form-control" name="inputname" type="text" value="<%=obj.getProperty()%>" 
size="15" maxlength="15" data-mask="#.##0">

As soon as I click on the input field, I get [object Object] displayed in it and the following error:

error

mhdaouas avatar Dec 07 '18 23:12 mhdaouas

Tengo el siguiente elemento de entrada HTML cuyo valor es 0 y se recupera de un objeto JAV JAVA (se aplica una máscara jQuery porque es una cantidad con miles de separadores):

<input class="form-control" name="inputname" type="text" value="<%=obj.getProperty()%>" 
size="15" maxlength="15" data-mask="#.##0">

Tan pronto como hago clic en el campo de entrada, [object Object]aparece en él y aparece el siguiente error:

49677077-0d8cfe00-fa7d-11e8-94e6-bfac8a2588ef

mhdaouas avatar Dec 10 '18 13:12 mhdaouas