Home > front end >  LayUI cell in a table form restrictions can only input Numbers?
LayUI cell in a table form restrictions can only input Numbers?

Time:01-17

LayUI data table I added a column of cell an event,
 {field: 'XZ, title:' XZ, width: 100, align: 'center', edit: "text", the event: "numCol"} 

 table. On (' tool (listFilter) ', function (obj) {
$(" table input "). Attr (" type ", "number");
$(" table input "). Attr (" step ", "0.5");
})

This event is triggered when as I wrote above is all the input in this table are set to number type, how do I set the current cell only input input type is the number?
  • Related