How do these people go,
What do you say is that dividing one percent apart What is the best way to use input using Jquery? To wit. This idea is assumed to be on the key of each of these inputs - is reduced by 100% and then divided and set as the value of the other fields goes. In the end, if input 25 should be shown in the remaining field as the input value: As always, any help is appreciated However, the need to add some error checks & lt; Input type = "text" value = "" name = "inputon" /> & lt; Input type = "text" value = "" name = "input two" /> & Lt; Input type = "text" value = "" name = "inputThree" /> & Lt; Input type = "text" value = "" name = "inputfire" />
$ ('input'). ('Keyup', function () {var val = this.value, $ allInputs = $ ('Input'); if (Val> 100) {$ allInputs.val (100 / $ allInputs.length);} And {var length $ ('Input'). No (this) .val ((100-val) / ($ allInputs.length- 1));}});
No comments:
Post a Comment