If you open a time picker in a jQuery dialog using the classic theme and try to use the time picker scroll bar to move down the time list, the time list disappears. You can see the issue here: http://jsfiddle.net/7c2z840a/7/ The problem appears in both Chrome and Firefox, but not in IE. Anyone have any ideas …
Tag: jquery
jQuery events function for ‘html’ but not CSS
Nothing happens. No errors in the console are shown. No matter what event – click, hover, etc – they only work if I apply them to the ‘html’ tag. First part of the code works perfectly, I mean the .css. What kind of sorcery is this? Answer Grrr… I figured it out. The whole code n…
Check if all inputs are empty
I have multiple inputs on my page, when any them are filled, an “info div” appears on the side; Now if all the inputs are manually cleared (on keyup), I need to hide that “info div”. How can I check (on keyup) that all of the inputs are empty at the same time? Cheers Answer Loop throug…
How to reset the bootstrap modal when it gets closed and open it fresh again?
I have a list box in the bootstrap modal and a button. When the button is clicked a new button gets rendered inside a div in the modal. When I close the modal and reopen it, the last operation performed on the modal like the button rendered earlier is still present in the modal. How do reset the modal so
Why does Bootstrap Collapse keep removing the “collapse” class after expanding?
I am using jQuery Collapse on an element that’s inserted via Ajax. When I apply the line below, it removes the collapse class. I need the class to remain so I can call collapse(‘hide’) when the Ajax content needs to be closed. Here’s what I have in my .php file: Here’s what it en…
onYouTubeIframeAPIReady function is not calling
I want to call onYouTubeIframeAPIReady function but this is not firing. I am getting only frameID in console but other functions are not getting called. Answer Your onYouTubeIframeAPIReady() function must be defined globaly. Simply replace the line with It is also important to load the youtube iframe api libr…
Add class when on second onepage-page
I am building a website (one page) and when you scroll down, the second page scrolls over the first page. The background-color of the second page is a little bit transparant (0.9) so you can still see …
JavaScript – Click all buttons with Class Name after 5 seconds (Twitter)
I’ve been trying to get my script to work for ages now, and it just won’t have it! I’m trying to click all the ‘unfollow button’s on my Twitter/Following page after 5 seconds. Here’s my code without the setInterval function: Here’s Twitters HTML DOM code for the unfol…
How can I stop all the currently ongoing Ajax queries that DataTables instance have started?
Brief Description Resetting a test server to a known state causes my tests to fail due to Ajax requests launched by DataTables instances being ongoing at the time the server is reset. I’d like to prevent this by stopping the DataTables requests before the server is reset. Detailed Description I have an …
Javascript – Get Previous Months Date
If i have a variable that returns a date, in the format of dd MMM yyyy, so 28 Aug 2014, how can i get the date of the previous month. I can modify the month via: Essentially, this is adding one to the Month.. But how can i account for years, so if the current date is 12 Dec 2014,