In the first one there's a dropdown with the months values and on the other one i have the datepicker input box.
Using the boostrap-datepicker and moment libraries, I want to achieve the following: 1) On dropdown selection the datepicker value should change based on the month value [DONE!].
2) On date change it should check if there's the specified value of months interval in the dropdown on the left and then add the "selected" attribute on the option.
Hello guys, i'm kinda newbie in jquery - ajax and what i want is to build a "live filtering" function with get parameters using jquery (and ajax i guess). I'm aware of some basics as for the ajax functionality but what i really want is to end up building a function with get parameters in url based on dropdowns, inputs, checkboxes etc.. , sth like "www.example.com/products?category=tshirt&color=red etc.. etc.."..
Can anyone tell me where shall i start in order to learn to build something like that? (I don't want a ready made code, i just want to learn how to achieve it).
It may sound silly question for some of you but guys as i mentioned i just want to know where to begin with!
Any help would be appreciated!! Thanks in advance!!
Hello, I have the following problem. I use "moment.js" for displaing "posted {x} minutes ago" text in my project, but my main problem is that it does not load each timestamp individually.
This is how i "messed" it.. hm hm.. i mean made up so far!
I created only two columns but imagine much more entries.
I have these two inputs in the first of which, i have a dropdown with the days and on the other one i have a datepicker formated date.
What i want is if i select a value from dropdown to show the date in the datepicker input, and the same backwards.
That's my snippet so far, but in the input i get a full fomated date something like, "Wed Apr 03 2019 00:00:00 GMT+0300 (Eastern European Summer Time)"..
Hello, I have the following code and even though it does what i want to do i think that i write too many lines of code for this function.
In short, i have some modals in which i load forms dynamically with .html(). I want to add / remove in each modal opened the "modal-lg, modal-md" class etc.. in a better way.
In my fiddle i use some if statements. Is there any other way to achieve this by using less lines of code?
I've tried addClass, removeClass, toggleClass etc.. but it doesn't seem to work as expected.
Hello,
I have a page where it loads some items from db.
I want each item to have a "settings" dropdown box in which there will be options like "edit, delete etc...".
I made it to a point but the thing is that when i click an entry's settings button to open up the dropdown box, it collapses every item's dropdown box in page.
Hey guys, I'm currently creating a project with Codeigniter and i have some dropdowns which will filter my db results using "GET" method in url.
What i want is to pass or replace (if its already in the url) the value of the selected dropdowns ONLY, like an array.
A guy helped me on some point but on selecting another dropdown box the value in url is replaced with the last chosen. Could you please help me on that?!
P.S.: If you faced the same (filtering results) and you have a different proposal on how to achieve this, please do it freely!!