|
Title: Hide/Show a DataList Post by: yamilbracho on July 23, 2015, 01:33:51 PM I have a DataList inside a accordion and after click a checkbox I want to show the datalist.
Initially, i specify display :none to hide the datalist, so : Code: <div id='especialidadList' When i run my app, the datalist is shown!!! Also i add the change event code for the checkbox and add this code Code: if (this.checked) {But 'especialidadList' (the datalist) does not set hide/show TIA, Yamil Title: Re: Hide/Show a DataList Post by: stworthy on July 23, 2015, 07:31:01 PM To show or hide the datalist, you must get the panel object first and then call 'open' or 'close' method.
Code: var p = $('#especialidadList').datalist('getPanel');Title: Re: Hide/Show a DataList Post by: yamilbracho on July 24, 2015, 03:13:35 PM Thanks a lot!!!!
Title: Re: Hide/Show a DataList Post by: battlezad on July 28, 2015, 02:26:37 AM This also helped me, thank you :)
|