My jquery datatable is displaying existing rows from the database . I want to display the entire data in Upper case where some of the data in database are in lower . I already defind columns and data for the datatable. how could I convert the data to upper case either at the time of rendering or at the time when fetching from database.
Any body please give me suggestion on converting the jQuery data table data to upper case
Thanks in Advance Subin
My jquery datatable is displaying existing rows from the database . I want to display the entire data in Upper case where some of the data in database are in lower . I already defind columns and data for the datatable. how could I convert the data to upper case either at the time of rendering or at the time when fetching from database.
Any body please give me suggestion on converting the jQuery data table data to upper case
Thanks in Advance Subin
Share asked Feb 15, 2017 at 7:06 SubinSubin 311 silver badge3 bronze badges 1- Add your code to your question and tell us what went wrong. – VPK Commented Feb 15, 2017 at 7:11
2 Answers
Reset to default 3You can achieve this using css.. Just do
#myDatatableId {
text-transform: uppercase;
}
Simply add css
to td
to make all text in upper case
<style>
td {
text-transform:uppercase
}
</style>
If you want to be more specific you can target the td of specific table only by id
or class selector
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744650056a4585847.html
评论列表(0条)