I'm doing this in JS because I can't any of the Java I learned a few years ago...
I tested the code with much smaller numbers and it worked. With the big numbers my browsers are not responding, not surprisingly (I'm using the latest firefox on the latest mac os).
Will the code finish running tonight? Next week? In 10 years?
Awhile back I posted a script that was working fine in IE but not in Firefox. This is again my dillema with another piece of code.It is supposed to limit the number of characters accepted by a textbox.Here's the JS:
I'm trying to get my script below working. I've managed to get it to add fields dynamically but the remove function isn't right... and I can't think of a way round it. how can i incorporate a way for a limit on the number of fields that can be added?
ah, i've just looked into the operators in more details and -= is just for numbers... so this won't work. i presume this is going to be the wrong method then.
I have numerous checkboxes and when these are clicked upon I want to increase a number value further up the page. So as a checkbox is selected or deselected the relevant + or - 1 shall be applied to the number at the top of the page.
Is there a way with JS that i can have some sort of label at the bottom of each column that will in real time display the number of boxes in that column that are checked? I am guessing it will be a function that is called within the OnClick method of the checkboxes.
I have a page that displays a list of people playing in a tournament. I need to be able to generate a Leaderboard based on which players are manually selected by the admin. Next to each person there is a drop-down list. An admin can go in and select a "slot" that a player should be in on the leader board from 1 to 8, or leave it blank if none. What I need to figure out how to do is the following, when a change event happens on a drop-down list, and say the value 5 is selected, I need to check to make sure that 5 is not already selected in one of the other players drop-down lists, in other words, that the 5th leaderboard slot is not already full. if it is, display an error message and make them change that one first. how to do that with jQuery? I'm thinking it will have something to do with the each() function, but not sure exactly how the logic should work.
I have written the following script which enables/disables checkboxes on my page when a radio button is selected.[code] What I would like to do is create another function called checkval() like below, which will check the value of my radio button (id: email_alerts). If the value is equal to "on" then it will run enableCheckboxes().
Got 2 problems with my buttons selection. What happens is the user selects the number of buttons depending on the number entered in the text box. If the number is 3 in the text box, then the user can only select 3 buttons, if more buttons are selected then it comes with an alert message saying user is beyond limit deselect a button to be able to choose another button.
I'm trying to figure out how I can have a script add up the number of radio buttons selected for each category. For example, on a test, I'll have three options for each question. I want to add up how many A's are selected, how many B's are selected and how many C's are selected for each question.
I am new to Java scripts. But at my job, my boss asks me to come up with a calculator that calculates the number of weeks on our website. But I want two calenders where in the first one the user will select the start date and in the second one, the user will select the end date. And There will be one last button that says"calculate" and a text box to display the number of weeks.