Home > Article > Web Front-end > A simple example of JS taking the minimum value in the text box_javascript skills
Effect: Take the minimum value
Event: After inputting a value, get the minimum value.
Code:
if (tbkyqd1 != 0 && tbkyqd2 != 0 && tbkyqd3 != 0 && tbkyqd4 != 0 && tbkyqd5 != 0) {
var numbers = [t bkyqd1, tbkyqd2, tbkyqd3, tbkyqd4, tbkyqd5];
numbers = numbers.sort(function (a, b) { $("#<%=tbqdzxz.ClientID%>").val (numbers[0]);
}
}
function ChangeFloat (data) { 🎜> }