After selecting an item in a different DropDownList, I want to change a textbox on the page with a DropdownList (the change happens is a bool is true that besides).

```
$('#InvoiceNumber').replaceWith($(@Html.DropDownList("CategoryId", new SelectList(Model.Categories, "Value", "Text"), "Choose a category")));

```

But the following error occurs: 

> 
> Uncaught SyntaxError: Unexpected identifier 
> 
> 
> 

Why is this occuring?