Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Ah IE how you make us MAD - MAD I TELL YOU!!!

Ok so I am developing this little site and on the page below in IE9 (at least not check others) when you click on an input field I do not get a flashing cursor - unlike other real browsers (this pop at IE is just my own thoughts and does not reflect that of Treehouse, its members or staff :-) )

Does anyone know a work around on this for me please.

http://plusonetesting.co.uk/RedLionPickmere/newsletter.php

2 Answers

Hey Graham,

When I viewed it in ie9, it looks like the element loses focus after the input is clicked. I haven't checked any of your javascript, but you may have some luck by utilizing jquery's focus() function.

for example:

$('#frmSS1 input').click(function(){
    $(this).focus();
});

You may have to put the .focus() in a callback function, after the default inner text (First Name, Last Name, etc) disappears. Good luck!

Hi Neal

Thats great thanks for the input. It's IE of course I will need luck :-)