I love this little bit of jQuery code...in IE.
// Add this behavior to all text fields
// Select field contents
For the page I'm working on, I really like this behavior. If you select a textbox (INPUT type=text), this bit of code selects all text in that box, ready for you to delete it or replace it, whatever.
Problem is, this doesn't work in Firefox. How do I modify it so that it works in both IE and Firefox?
I'm only interested in meta-code like this, run it once and that's it. No adding code per-each-control. Don't want that. This is behavior I want attached to every single enabled textbox on my page. Ideally, I just want to modify this bit of code to make it work.