Convert dt/dd list into a li list using jquery?
I want to convert a list of product details from dt/dd html format into li?
I tried doing this numerous, but don’t know where to start?
Example fiddle: https://jsfiddle.net/nj0h4ddh/
You could use the
In order to combine the
dd elements, you could use the following before wrapping/upwrapping the elements:
As a side note, you could also use the
.replaceWith() method for the same results: