I want to create a mathematical formula plugin for my website where users will enter their own numbers based on the formula in an html form style. The formula is (a)*(b)^2/800 I want their to be a box for users to submit their data which will be (a) & (b) and then a box below showing the calculation. Also buttons giving the users the option to "calculate" and "clear fields". Is there a website where I could input the formula and they could generate the coding?
I need to learn how to clear form fields when a user clicks on them. Here is the site in question: [URL] They used to work, but then I changed the field value and now it doesn't work on some of the fields (whichever ones I changed). Here is a link to the .js file:[URL]
There are two input fields in a form, but only one of them is required, they are not required at the same time. Either A or B is required. ( A is required OR B is required). In other words, a user can input data to field A, or he can input data to filed B, but he can not input data to Both A and B at the same time. How to implement this constraint in Jquery form validation?
I have a form that has a reset button, and when it's closed, the form is reset. However, at least in testing on my own machine, I notice that the form fields are remembering past input (on Firefox 4 anyway). Once this goes public, I don't want the form remembering anything in case the website is viewed on a public machine. How can I keep the form fields from remembering any past input?
The number of fields for each block varies because the page is constructed by a server function. What I want to implement is move up and a move down buttons on each block to move what the user has entered in say, block 4, to block 3 (and move the block 3 contents to block 4). And the contrary too.
I've created a admin center, that has two seperate login permissions. Admin which can edit listings, etc... and Viewer which can only view listings, and edit 1 or 2 of the listings details and not all of them like the admin. I've seen web-sites where certain text input fields are sort of Grayed out, not allowing for user to type, click in or change anything in that field. Sort of like the html text input field has been or is disabled. How can I get certain html text input fields to appear disabled, and the text that's inside un-editable or unchange-able?
I have a select dropdown with several options. The user selects an option and fills out the following few fields. If the user then changes his mind and changes the option in the dropdown, I want all the fields - or just the ones already filled out - to be cleared.
Note: reset() of the form is not an option as there are other things going on (hide/display of fields based on the dropdown option selected).
I have a search form and added the "Clear All" Button functionality...but it clears the last part of the search form display preferences....how do I only clear the checkboxes at the top of the form only and not at the bottom of the form between the <DIV> tags? I have attached a copy of the JSP page.
I have a form that collects information about up to 5 items. I would like the user to be able to select from a drop down menu how many items for which they want to compare information, and then have the form change the number of input fields accordingly.
In other words, if the user selects enter info for 3 items, then input fields for only 3 items are shown, if they change it to 4 items, then a fourth column shows up in the table with the appropriate input fields.
I am not new to jQuery but I just want to ask the best way to approach this. Basically I have a textfield in which the user is going to type in a number (for example 20) and after this textfield lose focus jQuery will be triggered to create whatever number of textfields the user put before (in this case 20).
So, to illustrate: How many users do you have: [ 2 ](and after the field above lose focus, the below will be generated)
I have a set of input fields that can be dynamically duplicated/cloned or removed and submitted. I'm looking for a ways to configure the form for easy processing without having to loop through each input field inside the divs:
I made this function to duplicate form elements with a little html-code surrounding the input fields. First i clone the html of the first child found (always gets rendered by php). Then, everytime the add-button is pushed, i append a cloned piece of that stored html. It's working fine except for the delete button.
It's seems that whenever a cloned html is removed, the other cloned elements aren't recognized anymore by the delete buttons (although the delete buttons are in them)
After a user successfully logs in, I'm hidng the login div, and displaying the 'loggedin' div. However, if someone clicks on logout, the username and password fields still have the login credentials in them. So, I need to clear those text boxes, along with the 'remember me' checkbox.
Here is my code:
I've tried single quotes, double quotes and other variations. Nothing is working.
However, that 'alert' does show the value in the username box.
Here is the code for the login, and loggedin divs and forms:
Just a noobish question here, is it ok to assign the same id, name, and class to each form object as long as they are unique per form object?
I.E. - id="signout" name="signout" class="signout"
I would like to clear a search input field on focusout(), without extra button for reset or something similar. I filter list when users type something in search field but when they click outside the form, search filed should be cleared.
It seems using the JQuery .val() function for FILE inputs doesn't work correctly in IE. That is, I can't change the value (file name). I'm trying to clear it, using .val(''). This works in Firefox but not IE.