Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1016 Bytes

README.md

File metadata and controls

36 lines (30 loc) · 1016 Bytes

MIT Licence

TableEdit

Online example

https://samuelsantosdev.github.io/TableEdit/

How to

<script src="js/tableEdit-0.1.js"></script>

<!-- load plugin for element -->
<script>
$(function(){
        $("#tableEdit").tableEdit({
                    columnsTr: "2,3", //null = all columns editable
                    enableDblClick: true, //enable edit td with dblclick
                    callback: function(e){
                        console.log(e.city);
                        console.log(e.age);
                        /*
                         * code for ajax
                         */
                    }, 
                    activeMasks: function(){
                       console.log("function enable masks");
                       /*
                        * function for active masks
                        */
                    }
                });
})
</script>