Input sorting using placeholder?
Input sorting using placeholder?
![Chris230291](https://secure.gravatar.com/avatar/4ec00155488a7bc729f51275db59fe9a/?default=https%3A%2F%2Fvanillicon.com%2F4ec00155488a7bc729f51275db59fe9a_200.png&rating=g&size=120)
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
This discussion has been closed.
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