Answers for "limit number of values in a twxt input"

0

how to set limit of words in input type text

<input type="text"title="likethis()"maxlength="200"placeholder="This will allow only 200 words">
Posted by: Guest on November-16-2021
0

limit number of values in a twxt input

<script language="javascript" type="text/javascript">
function limitText(limitField, limitNum) {
    if (limitField.value.length > limitNum) {
        limitField.value = limitField.value.substring(0, limitNum);
    }
}
</script>

    <input type="text" id="sessionNo" name="sessionNum" onKeyDown="limitText(this,5);" 
onKeyUp="limitText(this,5);"" />
Posted by: Guest on March-12-2022

Code answers related to "limit number of values in a twxt input"

Browse Popular Code Answers by Language