i’m new learning codeigniter 3, i have problem that i can’t upload image in edit method. i’m really stuck, i already figure it out from the internet and documentation but there is no answer and my code still not working, when click submit button the method was success update to database but not with the image, here is my code
Tag: jquery
Display a Swiper slider when clicking a thumbnail in a gallery
I’m building a thumbnail gallery with a slider feature using Swiper. By default, the slider is hidden, and when the user clicks one of the images, the slider must be displayed showing the clicked image. Once the slider is open, the user can click a Close button to hide it and return to the thumbnail gallery. This is the code
Query ‘data-value’ to Populate Conditional If Statement
For each .round div, there is a data-value(%) which is static at the moment, but eventually going to be dynamic. Trying to call it in my JS for if data-value <= 0.50 display the bar as red, if data-value >0.50 && data-value <=0.75 display the bar as yellow and if data-value > 0.75 display it as green to call that
How do I increase and decrease the addition in a span tag by click + and – buttons around input tag?
It’s worked without buttons. But how to apply input addition with help of + and – buttons. How can I solve this with javascript or jquery? How to get an answer at runtime by clicking the buttons around them. I also have a separate code for the increase and decrease buttons. Answer This is what I actually want. The sum
jquery remove class / addClass not doing anything [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I use some switch in jquery to add/remove class: I have some image
Use function parameters as a variable call
what has already been described in the title, but basically I want to send a function perimeter and use it to call one of the three different variables. Also so it doesn’t come to a miss understanding the “$(‘#’+id)” part of the code works all I need is the correct syntax for the “id =” part (if even possible). And
JQuery Search function for div containers
I am trying to use JQuery and this script (to filter my mySql output): the mySql entries I want to filter look like this in html: so each <div class=”card” id=”notes”> is one entry. The problem is (as you can see) I probally use this function wrong because I filter $(“#notes div”).filter(function() { so if I search “ABC” the script
Remove parent node on click of button throw function on found error
I’m working on my companies legacy project. It uses jQuery. I have to add a feature to it. The feature is that, on clicking a checkbox, a span with the checked value (let’s call it “filtered value”) will be displayed with a “remove” icon in it. On clicking the remove icon of the “filtered value”, filtered value should be removed
Setting variable to target all divs with same Class
When selecting a class with querySelectorAll i get an uncaught error Uncaught TypeError: b.getBoundingClientRect is not a function at overlaps is there a way to fix that? I have div being generated with an ID ‘enemy’ and want to detect overlapping with my div ID “char”, but the function only targets the first div with ID ‘enemy'(the console log(overlaps) fires
Datepicker flashes and disappears after field receives focus
I have an html page that displays a modal dialog with two jquery datepicker fields. When the dialog is instantiated, the cursor is properly placed in the first datepicker field and the calendar is displayed. Upon selection of a date, focus is moved to the second datepicker field. The calendar flashes but disappears. How do I correct this? The code