jQuery Datatable column inline edit — April 25, 2018

jQuery Datatable column inline edit

Here is a amazing library for column inline edit. Super easy to use. It saved so many hours of my life 🙂

https://github.com/ejbeaty/CellEdit

result

Advertisements
Ajax request returns 400 bad request — February 13, 2018
jQuery datatable add input to toolbar section — December 17, 2017
jquery Datatable table.columns is not a function —
jQuery remove empty element from an array — December 4, 2017
jQuery check and make sure that function exists — November 13, 2017
jQuery allow only digits in input — September 4, 2017

jQuery allow only digits in input

jQuery.fn.ForceNumericOnly =function()
{
    return this.each(function()
    {
        $(this).keydown(function(e)
        {
            var key = e.charCode || e.keyCode || 0;
            // allow backspace, tab, delete, enter, arrows, numbers and keypad numbers ONLY
            // home, end, period, and numpad decimal
            return (
                key == 8 || 
                key == 9 ||
                key == 13 ||
                key == 46 ||
                key == 110 ||
                key == 190 ||
                (key >= 35 && key = 48 && key = 96 && key <= 105));
        });
    });
};

$("#userphone").ForceNumericOnly();