[Solved] Java Script/Jquery – If numbers beteen then show [closed]


I made some assumptions here (like you meant 1001-2000). Is this what you need?

$('#unidno').keyup(function () {
    if (parseInt($(this).val()) >= 0 && parseInt($(this).val()) <= 1000) {
        $('#spanResult').text('10.10.2013');
    } else if (parseInt($(this).val()) > 1000 && parseInt($(this).val()) <= 2000) {
        $('#spanResult').text('20.12.2013');
    } else {
        $('#spanResult').text('');
    }
});

6

solved Java Script/Jquery – If numbers beteen then show [closed]