How can I use jQuery to convert an HTML table into
's?

前端 未结 3 1494
青春惊慌失措
青春惊慌失措 2020-12-09 07:18

How could I go about converting an HTML table (I will provide code below) into

elements? Long story short, I am using a PHP script that outputs cont
3条回答
  •  半阙折子戏
    2020-12-09 07:41

    It does seem like a crazy thing to have to do. I just wrote a jQuery plugin to do this though. Working with an old web app where we don't want to really dig into the backend code and are on a limited budget. So, just taking the data that is dumped out in tables, converting them to divs, so I can float them around, style them up and make the data look better.

    The system is rending data that is not really 'tabular' data.

    https://github.com/ryandoom/jquery-plugin-table-to-div

    If anyone is interested in the future.

提交回复
热议问题