Add class and onclick function to html string from sql server

I’ve a query string to create html row SELECT(SELECT’Court 1′ as th,’Court 2′ as th,’Court … Read more Add class and onclick function to html string from sql server

I’ve a query string to create html row SELECT(SELECT'Court 1' as th,'Court 2' as th,'Court 3' as th,'Court 4' as th FOR XML raw('tr'),ELEMENTS, TYPE) AS headertr

and the output is <tr><th>Court 1</th><th>Court 2</th><th>Court 3</th><th>Court 4</th></tr>

is there any way to add an onclick function and class from sql itself?

Source: JavaSript – Stack Overflow



Leave a Reply

Your email address will not be published. Required fields are marked *