Skip to content Skip to sidebar Skip to footer

Unable To Display Expected Value In Jsp

i was rounding off the value to .25,.50,.75 and .00 in the javascript. and the code is as below. function roundOff(obj) { //alert(document.getElementById('sample').value);

Solution 1:

You are setting the value of your textbox to floorValue, not newValue.

Solution 2:

I was using onKeyUp in the jsp which was causing the trouble. instead i changed it to onBlur as it was providing the same effect as per my requirement. And thank you 'nnnnnn' for your suggestion. Its working now.

Solution 3:

Try Using onblur event. because it works fine in fiddle. other than that i see no problem in your code.

Solution 4:

You can try like this,

document.getElementById("sample").value="+floorValue+";

If it works you can Refer Reason HERE fourth Question

Post a Comment for "Unable To Display Expected Value In Jsp"