How to add placeholder text and CSS class to an Editor input field?

How to add placeholder text and CSS class to an Editor input field?

fittafitta Posts: 7Questions: 3Answers: 0

Hello, I'm using DataTables Editor (bubble editing) with my table. And I have declared a field "idExpiryDate" like the following:

 editor = new $.fn.dataTable.Editor({
     /* some other configurations ...*/
     fields: [
         { label: "Id Expiry Date", name: "idExpiryDate"}
     ]
 });

My goal is to add a placeholder message to the "idExpiryDate" input field, as well as a custom class name to the input element. How can this be achieved? Thanks in advance.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    Hi @fitta ,

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

This discussion has been closed.