Only allowing integers in inputfields

Only allowing integers in inputfields

badbytebadbyte Posts: 33Questions: 7Answers: 0

I have a datatable where I fill it lines containing input fields. And I would like those fiels only to accept numbers (Integers) is there a way that datatables resticts the user from entering anything else than numbers?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    Answer ✓

    Hi @badbyte,

    Nope, DataTables just manages the table, what you put in the cells is up to you, and in your case that's the input elements. The best bet is to look on SO, there'll be many threads on that, for example here.

    Cheers,

    Colin

  • badbytebadbyte Posts: 33Questions: 7Answers: 0

    Alright thx

This discussion has been closed.