Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Have you tried the .focus event? <a href="http://api.jquery.com/focus/" rel="nofollow">http://api.jquery.com/focus/</a> You can do something like:</p> <pre><code>$(document).ready(function() { $('twiter_textareas_selector').focus(function() { $(this).css('border':'blue 3px solid'); }).blur(function() { $(this).css('border':'gray 1px solid'); }); }); </code></pre> <p>Usually, it's better to use classes to do this (methods .addClass() and .removeClass() ), but the example is only to show the idea. :)</p> <p>I don't know if there is an way doing it by css, but by jquery is difficult to appear different behaviours from one navigator to another. </p> <p>I have done some tests on twitter site, so I'he found those properties used in chrome and firefox. If you don't want the glow set them like this:</p> <pre><code>-moz-box-shadow: 0 0 0 none; -webkit-transition: border 0 linear; -webkit-box-shadow: 0 linear; </code></pre> <p>In other navigators there will be more properties to set, because the first is only for firefox and the next are for webkit based browsers like chrome. And .unbind('focus blur') because twitter use them to make sure all the navigators see the pages correctly.</p> <p>A code like this:</p> <pre><code>$(document).ready(function() { $('twiter_textareas_selector').unbind('blur focus'); //try to stop the twitter scripts $('twiter_textareas_selector').focus(function() { $(this).css('moz-box-shadow': '0 0 0 none', '-webkit-transition': 'border 0 linear', '-webkit-box-shadow': '0 linear'); }); }); </code></pre> <p>I hope it helps you! ^^</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload