Hi all
I'm trying to fill a div with JeasyUI widgets, by using JQuery's .html() and load() method.
but when I put Jeasyui content in the div, it didn't render correctly.
for example, a simple button in my page renders correctly, but when I try to load a Jeasyui button in a div content, it render only a link, not a button,
like Jeasyui CSS was not found :
<!DOCTYPE html>
<html>
<head>
<title>Basic Form - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/icon.css">
<script type="text/javascript" src="https://www.jeasyui.com/easyui/jquery.min.js"></script>
<script type="text/javascript" src="https://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
</head>
<body>
<a id="btn" href="#" onclick="load()" class="easyui-linkbutton">click to load, this not work</a>
<div id="mydiv">
</div>
<script>
function load() {
$('#mydiv').html(' <a id="btn2" href="#" class="easyui-linkbutton">not a jeasyui button</a>');
}
</script>
</body>
</html>
any idea ? thanks a lot