I’m trying to update user password from panel admin with ajax request is use is_ajax_request() on the controller but this function says I’m not in ajax request. why does this happen? Here’s my ajax jquery: on the controller: since the result of ajax_checking is false the system redirect me t…
Tag: jquery
JQuery overrides checkbox functionality
I’m making a web app, and one of it’s aspects is a to do list. The problem with the todo list is that when I click the checkbox, it doesn’t get checked. I researched a bit and found that jQuery basically overrides the click event necessary to display the checkbox as checked. However, I’…
Ajax request with codeigniter 403 (forbidden)
I’m trying to send an value with Ajax to Controller file in Codeigniter but without success.I have searched for that problem and i now this question is made many times here,but still can’t find a sultion.Hope anyone can help me. Thanks ! Js file. Controller function.It’s in file called MyCha…
Using afterClose event with Fancybox3
How can I create an afterclose event with FancyBox3? I’m using afterClose event with the second version of fancybox but i’m trying to upgrade to fancybox3 and the instructions say to put the options in “data-options” attribute. Here’s what i tried: and also: Answer Your 2nd snipp…
AddThis Layers in Full Screen mode
I’m making a slideshow with full screen functionality (FancyBox 3), it’s using the RequestFullScreen method on the container div, which means any other element in the body is not accessible in full screen mode. (correct me if i’m wrong) I would like to include an AddThis Expanding Share butt…
AJAX works on localhost, but doesn’t on live server
Below code works on localhost, but not on live server. MAIN EDIT: Only 1 thing remains which is not working: On AJAX success this will being executed: How ever, the label(for example) is not being updated. The label needs to be updated by the score which is given (data.score_result). Ajax code: When I put ale…
How to get the previous selected value from a dropdown before onchange
I know its the easiest question but can’t get the correct answer. This is my onchange function. In this How Can I get the previous Selected Value from my select box? Answer Save the original value using data() when the element gets focus: And then get the saved old value in your onchange function:
Why is event.stopPropagation also stopping my Bootstrap Collapse?
I have a list item (#planAdminMenuItem) that has an onclick attribute. This list item has an icon inside of it (.spinner) that will collapse #collapseExample. Whenever the .spinner is clicked, I want it to run bootstrap collapse only. I do not want it to run drawPlanAdmin function. I have tried adding event.s…
JQuery object shuffle / randomize
Hi I have a JQuery object with multiple divs inside each containing text: I want to copy the object and shuffle the divs inside so that when I display the new object, it will be a shuffled version of the original object. Is this possible with a JQuery object or am I going to have to store the divs in
Vue.js get element’s html value by clicking on it’s neighboring element
Hello everyone I’m building a simple notes app and I can’t figure out how to implement one feature. I have a card element and delete button as a child of this element. I need to check if the card element child’s(.card-title) html value(jQuery’s .html()) is equal to the localStorage(I&#…