TripleDES Posted July 9, 2008 Share Posted July 9, 2008 Hopefully, this is a simple question. How do I go about setting a variable (PHP/Javascript) so when a user clicks out of a text field, it's immediately assigned? Thanks! Quote Link to comment Share on other sites More sharing options...
lemmin Posted July 9, 2008 Share Posted July 9, 2008 Like this? <input type=TEXT onblur="var variable=1;"> Quote Link to comment Share on other sites More sharing options...
TripleDES Posted July 9, 2008 Author Share Posted July 9, 2008 But the value I want for the variable is the value of the input. Would this still work? Quote Link to comment Share on other sites More sharing options...
lemmin Posted July 9, 2008 Share Posted July 9, 2008 Yeah: <input type=TEXT onblur="var variable=this.value;"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.