JSFiddle - React, Tailwind, and code Playground

by laubstein

HTML

<input type="text" id="myInput" />

JavaScript

/**
 * author: @laubstein
 * date: Mar 25 2011
 * title: jQuery $(':input').text('something') throw error in IE
 **/

try {
    $(':input').text('something');
} catch(e) {
    // if you are using IE, you will see this alert
    alert(e.message);
}