Input sorting using placeholder?
Input sorting using placeholder?
Chris230291
Posts: 34Questions: 10Answers: 1
Is it possible to sort a column of input fields using the value and also the placeholder value?
http://live.datatables.net/rovubece/1/edit
I would like the placeholder value to be just as important when sorting, but ignored if there is a real value.
This question has an accepted answers - jump to answer
Answers
You can use something like
$('input', td).attr('placeholder')
to get the placeholder. If the value is empty then return the placeholder. Something like this:http://live.datatables.net/kagohona/1/edit
Kevin
Thank you