Tagged Questions
1
vote
2answers
604 views
Passing a variable from within a while loop to a jquery
I have a web page that lists a number of companies from a MYSQL database, the listing just shows the name of the company. When user clicks on the company name a jquery accordion slider shows the rest ...
1
vote
3answers
410 views
jquery compare the height beneath img to h2's height
I am trying to adapt this:
var h2=$('.block h2');
var divh=$('.block').height();
while ($(h2).outerHeight()>divh) {
alert('enters while');
$(h2).text(function (index, text) {
...
1
vote
4answers
3k views
jQuery while loop not waiting for animation
I have a jQuery function that does a .clone() on an object, and then an .insertAfter() and a .slideDown() on the cloned object. This whole function is wrapped inside a while loop. I will keep this as ...
0
votes
3answers
161 views
JavaScript while loop get select option and hide option from other select boxes
I'm trying to develop a football teamline function that will store up to 18 players (11 starting players and 7 subs) using a select box for each player.
When a player is selected from one select box ...
0
votes
2answers
948 views
While loop in jquery of dynamic id and class
I have have multiple divs' with similar code within it, but also has a unique id within the main div that calls a toggleClass & slideToggle function. I'm trying to create a loop so that I do not ...