niche Posted June 22, 2012 Share Posted June 22, 2012 (edited) Is it possible to have two values for an input box; one to display and one to send to a function? If so, how are they declared? Edited June 23, 2012 by niche Link to comment Share on other sites More sharing options...
justsomeguy Posted June 22, 2012 Share Posted June 22, 2012 You can control what value goes to the function when you call the function. You can get the value from the box and change it if you want to before calling the function. Link to comment Share on other sites More sharing options...
niche Posted June 23, 2012 Author Share Posted June 23, 2012 OK. I get it. Thanks jsg. Time for a break. This is how I used what you said: onclick="sortBy('sortby')" The value for the input box, of course, is separate. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now