I use the Bootstrap Form Helpers Languages ​​plugin on my site, and the problem is that with JS it generates almost the entire structure, and there is no way to change or add anything (except languages). The main problem is that it generates a list of languages ​​with the a tag, but nothing happens when you click on them. I tried to add href attributes to them:

$("ul[role='option'] > li > a[data-option='pl_PL']").prop("href", "/index.php?lang=pl_PL"); $("ul[role='option'] > li > a[data-option='en_US']").prop("href", "/index.php?lang=en_US"); 

I also tried trigger () and click (...). In firebug you can see that they were added, but no action takes place. I looked through all the plugin code, but did not find anything that could block their robot. Website address: here (slightly under-smoked, problems with ssl, but the same problem on localhost). All site code: https://github.com/WELES777/PORTFOLIO.git

Closed due to the fact that off-topic participants Grundy , HamSter , aleksandr barakin , cheops , fori1ton 24 Oct '16 at 8:13 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Grundy, HamSter, aleksandr barakin, cheops, fori1ton
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • not the whole site code is needed, but the minimum reproducible example — that is, the minimum code that allows to reproduce the error. In addition, it should be added directly to the question, links can be a supplement - Grundy

0