Welcome Guest, Not a member yet? Register   Sign In
javascript focus()
#8

[eluser]slowgary[/eluser]
I've done the same thing with a form that I recently made. Tirso, do you use any sort of JavaScript framework? Using TheFuzzyOne's PHP example, you would do something like this with jQuery:
Code:
$(document).ready(function(){
     $('.error:first').focus();
});


Messages In This Thread
javascript focus() - by El Forum - 07-06-2009, 11:41 PM
javascript focus() - by El Forum - 07-07-2009, 03:54 AM
javascript focus() - by El Forum - 07-07-2009, 11:02 AM
javascript focus() - by El Forum - 07-07-2009, 11:34 AM
javascript focus() - by El Forum - 07-07-2009, 07:32 PM
javascript focus() - by El Forum - 07-07-2009, 08:49 PM
javascript focus() - by El Forum - 07-08-2009, 02:30 AM
javascript focus() - by El Forum - 07-08-2009, 05:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB