zidane1986
New Member
I am trying to build HTML in my javascript file this way.I need to add one more classname to my class attribute. But this classname is a javascript variable. I am not sure how to add this variable so that javascript interpolates this.\[code\] function build_html(sku) { //need to add sku as my classname here tmpString += "<a href=http://stackoverflow.com/"javascript: void(0)\" class=\"cart sku\">ADD TO CART</a>"; }\[/code\]TIA