I'm trying to change the value of an asp:textbox using jQuery using this line of code that I've found referenced in several places:
$("#<%= element.ClientID %>").attr('value', "");
However, I keep getting a syntax error saying that the first part is an invalid expression. I'm sure it's something simple I'm missing here, just don't know what it is.
jQuery is linked via the master page and the .js file with the function containing the line in question is individually linked on the specific page.