All Questions
88
questions
0
votes
1
answer
652
views
Show/Hide divs based on Time/Opening Hours
I am trying to show/hide divs based on opening hours.
The div .open contains the headline "Our store is open" and the other div .close contains the headline "Our store is close".
...
2
votes
1
answer
2k
views
Pause video on Tab switch in browser but should continue Playing when minimized the browser window
I am trying to pause the video when the user switches the tab in the browser and simultaneously if the user minimizes the browser window it should not get paused.
I tried it implementing by using ...
0
votes
0
answers
522
views
After "go to previous page" checkbox remains checked, but won't be detected by jquery
I have an array of checkboxes which can be used in a sort of calendar app. Whenever the checkbox gets checked, a label should become visible. My HTML looks something like this:
<script src="...
0
votes
2
answers
1k
views
ID selector with JavaScript & JQuery not working with show or visible style
My essential problem is that I am trying to select individual ID elements - either with JQuery or vanilla JavaScript - and show them at different time points, like an online powerpoint show of results....
0
votes
0
answers
177
views
Buttons - Column visibility in datatable
i used Button Column visibility in datatable with used of State saving. so user can save selected column.
but the issue is that when multiple user use same datatable and they select column as per ...
0
votes
3
answers
467
views
Enable Dropdown Selection Using a Checkbox, Toggle Dependent Dropdown and DIV Visibility
I have an interesting scenario involves using a checkbox to enable the a dropdown. Upon changing the status of the 1st dropdown, it should enables the 2nd dropdown. Once a selection is made in the 2nd ...
1
vote
0
answers
58
views
Jquery trigger function on visibility of element
What I'm aiming at is that each time the button appears an action is triggered on some items.
This is what I want to achieve:
$(".navbar-toggler").on(":visible", function(){..})
However, I can't ...
0
votes
2
answers
2k
views
jQuery Datatables: Combining column visibility with individual column filters (text inputs)?
I am using basic column visibility and individual column searching (text inputs).
The problem is that when the user adds a previously-hidden column to the table, the text field box for that column ...
0
votes
1
answer
242
views
How to combine 2 javascript codes in one?
I have somehow assembled 2 single codes (absolute beginner) and try to combine the two code blocks in one.
I tried the following: As soon as I scroll down, the navigation should be hidden and when I ...
0
votes
1
answer
237
views
CakePHP: show/hide form control based on checkbox status
I have these 3 controls in a cakephp form:
echo $this->Form->control('recurring', ['empty' => true]);
echo $this->Form->control('recurring_months', ['options' => $months, 'empty' =&...
1
vote
1
answer
719
views
Auto-Open Accordion When Visible On Screen
I'm trying to enhance the visual impact of a JS accordion by enabling each accordion item to Auto-open as the user scrolls down the page. They do not need to auto-close.
The accordion I am using ...
1
vote
1
answer
109
views
Checking Page Visibility and Page Focus for a page
I want to make sure when a user is on the page.
Hence, when a user clicks on another window (looses focus) or changes tab, I should stop playing video on my page.
The problem is trying to do both ...
2
votes
5
answers
9k
views
JQuery: How to fire click event on hidden element?
I want to create a flashing effect. When user click the flashing element, it will be disappeared. However, it seems not every "user's click" can fire the "click event". Sometimes, when I clicked the ...
1
vote
4
answers
70
views
Toggling HTML visibility using CSS and jQuery
Ok so I have a div that contains a canvas and a span which contains an image. I want it such that if the user hovers over or focuses on the div that the image inside of the span will appear. The image ...
0
votes
2
answers
574
views
Can toggleClass Work in Safari? (JQuery)
I have yet to find a solution to an issue that I am facing with a script that uses .toggleClass() to toggle the visibility of an element. The example below currently adheres the .show class to #pgnav ...