How to call jQuery directly in the onclick
of button? , for example:
<input type="button" id="btnteste" onclick="$("#IDdoTextBox").spectrum("set", $("IDdoCampo").val());" />
And it does not work, it does not return error or anything. In fact, in Visual Studio itself it is already in red as the wrong code.
The way below works, however as I said I do not want, since everything will be created dynamically in ASP.NET
<script>
$("#btnteste").click(function() {
$("#IDdoTextBox").spectrum("set", $("#IDdoCampo").val());
});