JS FIDDLE OF MY ACCORDION
I am trying to focus on the title or the first div that is inside the accordion, but it does not work.
In the js fiddle, html is active by default and consists of 11 questions. And now, by default, PHP crashed, and when we click on it, it will open and HTML will crash.
My problem is that when I click on PHP it shows the last question in my case, it shows the 11th question of PHP . In fact, it should show the first PHP quuestion how can I achieve this ..?
Please see the js script I shared.
I tried 3 different ways, but nobody works:
$("#panelForPHP").click(function(){ $("#accordionPHP").focus(); }); $("#panelForPHP").click(function(){ $("#collapsePHP1").focus(); }); $("#panelForPHP").click(function(){ $("#panelForPHP").focus(); });
source share