jquery-steps
jquery-steps copied to clipboard
Code snippets of examples are not not visible on this plugin's own website
It's not a good sign is it?
Not the best code but gets the job done to reveal the code snippets on Examples
if you can open up Developer Tools in your browser,
Chrome, use the keyboard shortcut Ctrl Shift J (on Windows) or Ctrl Option J (on Mac)
and copy and paste the code below and hit return/enter.
var summary = $("section details").children("summary"); for (x=0; x < summary.length; x++) { summary[x].setAttribute('aria-expanded','true'); } var details = $("section").children("details"); for (x=0; x < details.length; x++) { details[x].setAttribute('open',''); } var example_code = $("details").children("div.code"); for (x=0; x < example_code.length; x++) { example_code[x].removeAttribute('style'); }
Not the best code but gets the job done to reveal the code snippets on Examples
if you can open up Developer Tools in your browser,
Chrome, use the keyboard shortcut Ctrl Shift J (on Windows) or Ctrl Option J (on Mac)
and copy and paste the code below and hit return/enter.
var summary = $("section details").children("summary"); for (x=0; x < summary.length; x++) { summary[x].setAttribute('aria-expanded','true'); } var details = $("section").children("details"); for (x=0; x < details.length; x++) { details[x].setAttribute('open',''); } var example_code = $("details").children("div.code"); for (x=0; x < example_code.length; x++) { example_code[x].removeAttribute('style'); }
Useful code. Thanks!
Not the best code but gets the job done to reveal the code snippets on Examples
if you can open up Developer Tools in your browser,
Chrome, use the keyboard shortcut Ctrl Shift J (on Windows) or Ctrl Option J (on Mac)
and copy and paste the code below and hit return/enter.
var summary = $("section details").children("summary"); for (x=0; x < summary.length; x++) { summary[x].setAttribute('aria-expanded','true'); } var details = $("section").children("details"); for (x=0; x < details.length; x++) { details[x].setAttribute('open',''); } var example_code = $("details").children("div.code"); for (x=0; x < example_code.length; x++) { example_code[x].removeAttribute('style'); }
Thank you very much.
var summary = $("section details").children("summary"); for (x=0; x < summary.length; x++) { summary[x].setAttribute('aria-expanded','true'); } var details = $("section").children("details"); for (x=0; x < details.length; x++) { details[x].setAttribute('open',''); } var example_code = $("details").children("div.code"); for (x=0; x < example_code.length; x++) { example_code[x].removeAttribute('style'); }
Thank You