Jquery – PHP receives no parameter via AJAX
I try to hand over a parameter, a String, that is determined by user input via Ajax to a PHP Programm, but the php does not receive the parameter I try to handover. Then Ajax should return a JSON const…
I try to hand over a parameter, a String, that is determined by user input via Ajax to a PHP Programm, but the php does not receive the parameter I try to handover. Then Ajax should return a JSON const…
Sorry for this silly question, newbie here. I'm trying to do a testing and I want to insert the element name and ALT text values into var tagged ={} object. var $img = $('#gallery img'); var tagged = {}; $img.each(function(el,…
I'm trying to make filter from several divs: <div class="sgmt" data-id="orange, apple">First one</div> <div class="sgmt" data-id="onion, apple">Second one</div> <div class="sgmt" data-id="onion, grape">Third one</div> <script> $param="orange"; $('.sgmt').filter(function() { if ($param == '0') { return '*'; } else { return $(this).data('view') ==…
I am getting Dom text reinterpeted as HTML when trying to use (this) in JS script I have a function function test(item) { let newText = $(item).val() ... some more logic } $(".test").each(function(){ //...somelogic test(this); } Now i get the…
I'm creating a column chart with data: { xValueFormatString: "MMM YYYY", dataPoints: [ { x: new Date(2024, 0), y: 71 }, { x: new Date(2024, 1), y: 79 } ] } xValueFormatString is not working to format the x values…
Is it possible to cleanly combine this function. I am using mouseenter function to show my ajax page content and hide it with mouseleave $(function() { $("#card_client").mouseenter(function(){ $("#results").load("data/show_card.php"); $("#results").show(); }); $("#card_client").mouseleave(function(){ $("#results").hide(); }); });
I'm having an issue with my sidebars. I have two sidebars - one for filters and the other for the cart. When I open the cart sidebar, it automatically closes the filters sidebar. However, when I open the filters sidebar…
I've looked at lots of suggestions but none of them are working for me. The form has two submit buttons, one for add .add and the other for cancel .cancel <input type="submit" name="submit" value="Add" class="add"> <input type="submit" name="submit" value="Cancel" class="cancel">…
I'm updating the jQuery library on my website from version 3.5.1 to version 3.7.1. I need to address all the functions that have been removed to avoid problems. Does anyone know which functions were removed during these updates? I tried…
I have many checkboxes each having the same ID's and Classes. The input's themselves have the class 'el-checkbox__original'. <!-- when this is clicked the below divs which have checkboxes appear --> <div id="bap-service-13" class="bpa-front-si-card"> <div class="bpa-front-si-card__row"> </div> </div> <div id="treatment-option-ext"…