Bootstrap collapse: Open one, hide other

I have 2 buttons <a class=”btn btn-primary btn-sm” data-toggle=”collapse” id=”collapseSpecificationsButton” href=”#collapseSpecifications” role=”button” aria-expanded=”false” aria-controls=”collapseSpecifications”>+Spezifikationen</a>\r\n +Zeiten 2 collapse Divs: <div class=”collapse” id=”collapseSpecifications”>Content</div> <div id=”collapseTimes” class=”collapse”>Content</div> and this is my jquery Code in head/script: $(document).ready(function ($) { $(“#collapseSpecificationsButton”).on(“click”, function () { $(“#collapseTimes”).collapse(‘hide’); }); }); When I hit the buttons nothing happens, could anybody help me? How can…

jQuery append not in DOM and script run twice

I have this script $(document).ready(function(){ $(“li”).on(“click”, “span”,function(){ if ( $(this).attr(‘class’) == “plus” ){ var _this = $(this); var parent = $(this).parent(); parent.append($(“<select class=’aruCikk’>”).html(“<option hidden disabled selected value> — Válassz egy opciót! — </option>”)); var liSelect = $(_this).parent(); var aruAdatokId = _this.parent().parent().parent().attr(‘class’); var params = {mode:”aruadatok”, id:aruAdatokId}; $.post(“./src/source.php”, params, function(result, success, xhr){ if( success == “success”…

Troubleshooting creating a single page application. Browser does not include in DOM CDATA javascript blocks

What i’ve got is quite a rare situation. At my current company, we are making some changes to an existing web application to transform it to a singlepage one. Our current approach is to request and render each page through Jquery’s AJAX’s implementation, but we found a very weird behaviour here. If we access the…

Djagno-REST-framework-datatables didn’t show anything

I’m trying to practice Django with REST api, but when I try to run nothing happened. It still show the processing sign. Here is my reference:https://github.com/izimobil/django-rest-framework-datatables I try different version of jquery but seems it is not a solutions. Here is my code: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Title</title> <link rel=”stylesheet” href=”//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css”> <link…