Jquery Call Function with String Name
by suatatan
HTML
SUAT ATAN:
<div>
</div>
JavaScript
function testfunc(){
return "hello world";
}
$( document ).ready(function() {
//$("div").html(dene());
$("div").html(eval("testfunc"));
});
by suatatan
SUAT ATAN:
<div>
</div>
function testfunc(){
return "hello world";
}
$( document ).ready(function() {
//$("div").html(dene());
$("div").html(eval("testfunc"));
});