KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How to pass an object to HTML attributes? For example I have the following code: var attrs = new { id = "myid", style = "color: Red;" }; How to convert attrs to string like this to embed them into an HTML markup: id="myid" style="color: Red;" Thanks in advance :)
Tags (comma-separated)
Save Edits
Cancel