Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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 :-)