js field question
js field question
- Started
- Last post
- 4 Responses
- kinetic
tried searching for this one and came up with nothing but crap...so here i am ;)
i am trying to set the value of a field based on an html link that a user presses.
is this possible with JS?
thanks
- kpl0
yeah.
[a href="javascript:blah()"]
or
[a href="blah" onClick="blah()"]
blah() being the function that changes the field,
- kinetic0
wicked .. it works
thanks mate!
cheers
- kinetic0
a bit of a problem.
im am trying to pass the date like YYYY-MM-DD
but when i do..it minuses MM and DD from the YYYY
how can i get around this?
- kinetic0
nevermind..fixed it
thanks again kpl
:)