Thymeleaf to madal jquery

Have a nice day, everyone! I am doing a training project on SpringBoot + Thymeleaf + BootStrap4 + jQuery. Faced a problem – I can’t get the entity fields in the bootstrap modal window for changing records in the table. This is my button: <button type=”button” class=”btn btn-primary” data-toggle=”modal” data-target=”#exampleModal” th:data-id=”${userTable.id}” th:data-username=”${userTable.username}” th:data-newPassword=”${newPassword}”onclick=”doSomething(this.getAttribute(‘data-id’), this.getAttribute(‘data-username’), this.getAttribute(‘data-newPassword’));”>Edit</button>…

How to reload a php script, using AJAX and jQuery

Good evening, im a beginner in WordPress and i’d like some advices. I have a php script that load some articles thumbnails randomly according to some parameters. <div id=”logos ” class=”slide colonne”> <?php $posts = array( ‘posts_per_page’ => 5, ‘orderby’ => ‘rand’, ‘meta_query’ => array( array( ‘key’ => ‘_thumbnail_id’, ‘compare’ => ‘EXISTS’ ), ) );…

jQuery – make value of Input radio and select option the same

I am making and values identical. What I would to do is that if <select value=”Other-Xx”> is selected then it changes <input type=radio value=”Other”>. (* Xx right after ‘Other-‘ is an unspecified text.) Meanwhile if <input type=radio value=”Other”> is selected, unselect any <select> option or reset the <select>. $(‘.dropdown, input[name=”fruits”]’).change(updateElements); function updateElements(e) { var $element…