detect cursor type
I want JavaScript code to detect the cursor type. For example when the cursor hovers in textarea it changes from default to text .. You could do this, but its not pretty, and will probably be quite slow depending on how many elements you have on your page. $('*').mouseenter(function(){ var currentCursor = $(this).css('cursor') ; //do what you want here, i.e. console.log( currentCursor ); }); You can detect the cursor type using JavaScript like <input id="sample_text" name="one" type="text" value="Sample Text" /> and the JavaScript code should look something like this $('input[id=sample_text]')