Skip to content
Advertisement

Tag: jquery

How to change nav-link to btn on window resize with jquery?

I want to transform nav bar links from nav-link into btn on window resize. When the windows size >=601 – the nav-item change. But the problem is when the width goes bigger than 600. The nav link is not toggle the nav-link class. I want the nav-item to transform between nav-link and btn on resize. Please find the fiddle here

Multiple Arrays in DataTable

So I am working on a project and am having trouble trying to use multiple arrays of data in a data table. The issue I am running into is my initial set of data comes from a sharepoint list call(the calculations variable). I then use values in that array to run some calculations and put those into their own array(formulatedNumbers).

problem with circular rotating text on browser resize

I have a circle of text that rotates as you scroll down the page which is working absolutely fine. I have set the text to ‘display: hidden’ when the browser width is below 768px, if you decrease the browser width to below 768px it is hidden, then once increased it is visible again, this is working fine, BUT if you

Show/hide between two elements randomly onload

I have two elements, .a and .b. By default, both elements have display: none. I want to make one of the two appear randomly when the page loads. Sometimes .a appears, sometimes .b appears, by giving the class .c which will provide display: block. This is what I have tried but failed because sometimes both are shown and hidden together:

Group numbers from array that are right after each other

I have an array with some numbers like the following: I’d like to show all numbers that are direct after each other (n+1) in one line and if there is a gap, this should be separated. This will either be done in javascript/jquery. The user would see it like this: I’m guessing the only solution to this would be to

How to build links with fragments taken from text fields, but within a JavaScript to randomize them before open each of them on its own tab

I’m trying to make one single JavaScript able to randomize several links which must be built with fragments taken from text fields, before opening each of them on its own tab, by clicking a button. I know 2 different JavaScripts to separately do both things: a) build URLs with fragments taken from text fields b) randomize several links before opening

Jquery loop over checkbox and check for non checked

I am wanting to loop over an checkbox input and check if the checkbox ISNT selected then add the value of the checkbox to an array which im wanting to POST through ajax. I have an example below of looping through checkboxes which are selected but how would i do the inverse of this while still including the .each? Answer

Advertisement