2
How to call jQuery direct on onclick
button?, for example:
<input type="button" id="btnteste" onclick="$("#IDdoTextBox").spectrum("set", $("IDdoCampo").val());" />
And does not work, returns no error or anything. By the way, in Visual Studio itself is already in red as wrong code.
The way below works, but 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());
});
Just does not work or returns some error in the console?
– Diego Lopes Lima
I wonder if it is correct, because everything indicates that it is not so...there must be something missing...
– Dorathoto