JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://raw.github.com/miketaylr/jQuery-html5-placeholder/master/html5placeholder.jquery.min.js"></script>
<!doctype>
<html>
<head>
<title>test</title>
</head>
<body>
<input type="text" placeholder="blah"/>
<input type="text" placeholder="blah blah"/>
</body>
</html>
JavaScript
$(document).ready(function(){
var test = $('<input disabled/>');
$(document.body).append(test);
try{
test.focus();
}catch(e){
test.blur();
}
//clean up test element
test.remove();
$('input[placeholder]').placeholder();
});