remenissions Posted December 26, 2012 Share Posted December 26, 2012 Hi, I've been searching the web for the past couple days and I have been unable to find a solution. I'm currently reading jscolor.js to try and see how they do it but still at loss in understanding it. Basically I'm trying to make my input field not lose focus. If you look at the inputs here: http://jscolor.com/example01.php When you select the colors the focus is not lost while selecting a color. Anyone have any Ideas on how I'd go about doing this with out it being some tacky onmouseover focus() etc. Any help would be much appreciated, thank you! Quote Link to comment https://forums.phpfreaks.com/topic/272390-manipulating-blur/ Share on other sites More sharing options...
remenissions Posted December 27, 2012 Author Share Posted December 27, 2012 What I'm kind of getting at from jscolor is that they add a new blur event onclick, focus() target and aborting the blur etc. Still messing around with it though. Quote Link to comment https://forums.phpfreaks.com/topic/272390-manipulating-blur/#findComment-1401419 Share on other sites More sharing options...
lemmin Posted December 27, 2012 Share Posted December 27, 2012 It depends on what functionality you are looking for overall. I catch-all (potentially obnoxious) approach could be like this: $input.blur(function (){$(this).focus();}); Try to take focus from it now! Quote Link to comment https://forums.phpfreaks.com/topic/272390-manipulating-blur/#findComment-1401422 Share on other sites More sharing options...
remenissions Posted December 27, 2012 Author Share Posted December 27, 2012 Haha I'll mess around with that Thank you Quote Link to comment https://forums.phpfreaks.com/topic/272390-manipulating-blur/#findComment-1401424 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.