|
<!-- Add the HTML <div> element -->
<div id="element"></div>
<script type="text/javascript">
document.getElementById('btn1').onclick = function () {
var accordion = new ej.navigations.Accordion({
items: [
{ header: 'ASP.NET', expanded: 'true', content: 'Microsoft ASP.NET is a set of technologies in the Microsoft .NET Framework for building Web applications and XML Web services.' },
{ header: 'ASP.NET MVC', content: 'The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller.' },
{ header: 'JavaScript', content: 'JavaScript (JS) is an interpreted computer programming language. It was originally implemented as part of web browsers so that client-side scripts could interact with the user, control the browser, communicate asynchronously, and alter the document content that was displayed.' },
]
});
//Render initialized Accordion component
accordion.appendTo('#element');
document.getElementById('btn1').setAttribute('disabled', 'true');
};
</script> |