javascript - jquery datatable to display data in uppercase - Stack Overflow

My jquery datatable is displaying existing rows from the database .I want to display the entire data i

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
Add a ment  | 

2 Answers 2

Reset to default 3

You 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信