Can’t access a updated Bootstrap Dropdown with AJAX jQuery using Flask

i am new to jQuery and Flask and i try to update my Dropdown Menu with a AJAX request. My dropdown is like this: <div class=”btn-group btn-group-toggle” data-toggle=”buttons”> <div class=”dropdown”> <button class=”btn btn-primary dropdown-toggle” id=”b_btncontrollers” type=”button” data-toggle=”dropdown” aria-haspopup=”true” aria-expanded=”false”> Regler </button> <div class=”dropdown-menu” id=”c_btncontrollers” name=”btncontrollers” aria-labelledby=”dropdownMenuButton”> </div> </div> </div> I transfer a list from my…

removing classes in jquery

here is the HTML element main.each(function(i,val) { const month=$(val).find(‘ td:nth-child(1) ‘).text(); const amount=$(val).find(‘ td:last-child’) const rg=$(amount).removeAttr(“.newoffer_strike”).text(); const prt=$(val).parent().parent().find(‘thead tr th:first-child’).text(); const price=$(val).parent().parent().find(‘thead tr th:last-child’).text(); dat.push({“prt”:month,”price”:amount}) console.log(rg) }) how do I get all the text except from the the .newoffer_strike class?

How to sort Datatable based string array in jquery?

I need to sort datatable based on string array. Datatable “Officer Position” column need to sort like array order. example first row “president” 2nd row “Vice President”, etc. array = [“President”,”Vice President”,”Membership Chair”,”Secretary”,”Treasurer”]; code; var tmpV = $(this).parent().parent().find(“select”).val(); addTable.row.add([ searchedItem.FirstName, searchedItem.LastName, searchedItem.Id, tmpV, searchedItem.DegreeLevel, searchedItem.DegreeProgram, ‘<button type=”button” data_uid=”‘ + searchedItem.Id + ‘” name=”deleteRowBtn” class=”btn btn-primary”…