Is there a way to control the state of the collapsible part of the page from javascript according to the example below?
<div data-role="collapsible" data-collapsed="true"> <h3>Title</h3> I'm some hidden content </div> <input type="button" value="click me to open the above section" onclick="....">
outdated
ui-collapsible-contentinside your collapsible attribute aria-hidden- use this to check the status.
ui-collapsible-content
aria-hidden
$('yourthing a:first').click()
switches state.
This is not very nice, but I have not seen a good implementation.
I found:
$('myCollapsible').trigger('collapse').trigger('updatelayout');
or
$('myCollapsible').trigger('expand').trigger('updatelayout');
to best manage discharged items
Source: https://habr.com/ru/post/1782905/More articles:Можно ли повысить ошибку, если присвоение переменной в элементе возвращает несколько значений? - sqlMediaPlayer does not play sound correctly - androidПространственное эффективное встроенное решение Haskell - haskellneed help with jquery tab plugins - jqueryDelta Sigma DAC from Verilog to VHDL - vhdlКак вызвать функцию, объявленную в $(document).ready()? - javascriptHow to debug “deep” crashes in Android? - android.htaccess - move the site from .html to .php, but exclude the folder - phpHaskell Line Feed - Updated - haskellLicenses for internal packages? - oracleAll Articles