The following code is automaticually generated.
After loading the form, I get an error:
Uncaught TypeError: Cannot read property 'options' of undefined jquery.easyui.js:810
However, the click event works.
Any idea how i can do this init code? I am looking for a generic approach for all easyui elements.
Thank you.
<a class="easyui-linkbutton" data-options="iconCls:'icon-search'" id="linkbutton">Link Button</a>
<script type='text/javascript'>
$('#linkbutton').ready(function () {
var tmpID = $('#linkbutton');
tmpID.ready(function(){ var fkt = function(e) { console.log($('#linkbutton').linkbutton('options').text); }; fkt( tmpID); });
tmpID.click(function(e) { console.log($('#linkbutton').linkbutton('options').text); });
});
</script>