I ran into the following problem: I am using jQuery + ajax and I want my max and min spinner values ββto be set after the data has been received from sever. But the real situation is that when I check the element with firebug, it says that the max and min values ββare set, but in fact they are not, so there are no max and min values. here is the code:
... <input type="number" id ="spinId" name="someName" step="0.5" /> ... $("#spinId").attr('min', 0.0); $("#spinId").attr('max', parseFloat($('.someClass').text())); ...
and this .someClass is configured via ajax. I also noticed that the value is set correctly, i.e. $('#spinId').attr('value',ValueFromServer); works fine. so what should i do to fix this?
source share