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"));
});