I have a javascript that generates HTML like this:

```
function showdropdown(name1,sel, param){
        var dval="";
        dval = "<select name=\"" + name1 + "\" id=\"" + name1 + "\" >";
        dval += "<option value=\"\">Option</option>\r\n";';

```

How do I add a *class="my\_style"* to this? It must be super-easy but unfortunately I don't know anything about javascript structure combined with HTML.

I tried this:

```
        dval = "<select name=\"" + name1 + "\" id=\"" + name1 + "\" class=\""mystyle"\">";

```

which didn't work :(