It doesn’t work on my pc.
I copied the last part of that page into my view called test.
It doesn’t display anything.
It seems odd my code runs ok in _layout.cshtml but not in index.cshtml
If I run my own code then the .ready functions are called ok but the calls to make the button is not. save1 is displayed but save2 isn’t.
`
<script type=”text/javascript”>
$(document).ready(function () {
alert(‘save1’);
// Create save Button.
$(“#jqxButtonSave”).jqxButton({ width: ‘180’, height: ’25’ });
alert(‘save2’);
// Subscribe to Click events.
$(“#jqxButtonSave”).on(‘click’, function () {
alert(‘save3’);
});
});
</script>