JavaScript
Article

jQuery show() not working in Chrome 16

By Sam Deering

This doesn’t seem to work in Chrome 16

$('#msg').html(msg).show('fast');

but this does work:

$('#msg').html(msg).hide('fast').show('fast');

but then it seems to slide into view….

Any ideas???

  • Jelle Peters

    I guess the html(‘string’) function does return the html inside of the element

Recommended

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in JavaScript, once a week, for free.