skip to Main Content

Why is jquery has selector not returning false? – Shopify

I have the following html: <div class="switch has-switch"> <div class="switch-animate switch-on"> <input id="completed" type="checkbox" data-toggle="switch" data-shopify="data shopify" data-order="order number" class="ct-primary completed" value="0"><span class="switch-left">DONE</span> <label for="completed">&nbsp;</label><span class="switch-right">NOT</span></div> </div> The above html is repeated 8 times in an html page I have.…

VIEW QUESTION

How to show some json objects – Jquery ajax

I'm trying to get JSON file with ajax and display it in an HTML div but only part of it, not everything. Here is the ajax $(function () { $.ajax({ 'url': 'http://apis.is/weather/observations/en?stations=3696&time=1h&anytime=0', 'type': 'GET', 'dataType': 'json', 'success': function(response) { }…

VIEW QUESTION

Delete file using Coldfusion via jQuery ajax

I am trying to delete image files, after populating data about the file in a modal. My jQuery looks like this: const deleteMedia = () => { const url = '../../includes/delete-media.cfc?method=deleteMedia'; $(document).on('click', '.confirm-delete', () => { const fileName = $('.modal-wrapper').find('.file-name').text();…

VIEW QUESTION
Back To Top
Search