Skip to content
Advertisement

Add class and onclick function to HTML string from SQL Server

I’ve a query string to create HTML row

and the output is

Is there any way to add an onclick function and class from SQL itself?

Advertisement

Answer

It’s unclear where you want the attributes to go, but you could do something like this

db<>fiddle

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement