Horje
jquery change input value if greater than Code Example
jquery change input value if greater than
jQuery("input[type='text'][name='quantity']").change(function() {
    if (parseInt($(this).val(),10) > 40) {
        alert("To order quantity greater than 40 please use the contact form.");
        this.value == '';
        /* or with jQuery: $(this).val(''); */
        $(this).focus();
        return false;
    }
});




Javascript

Related
javascript index of min value in array Code Example javascript index of min value in array Code Example
debouncing Code Example debouncing Code Example
moment timezone set clock in another timezone Code Example moment timezone set clock in another timezone Code Example
javascript merge two lists without duplicates Code Example javascript merge two lists without duplicates Code Example
debouncing js Code Example debouncing js Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9