The eval
function executes a JavaScript script on the client-side. It can be called multiple times.
var result = new Result()
.eval("$('#table1 tr:even').css('background-color','green');")
.eval("$('#table1 tr:odd').css('background-color','yellow');");
Calling | Returning |
---|---|
result. eval ( script ) |
Result |
Parameters | Type | Description |
---|---|---|
script |
String |
The JavaScript code to be executed on the web page. |