JSFiddle - React, Tailwind, and code Playground

by mukkaram waheed

HTML

<div id="foo" >
<input value="nothing real"  size="50"/>
</div>

JavaScript

$('#foo input').prop('value', '');
$('#foo input[value=""]').val('value attribute doesnt work');

$('#foo input').filter(function() {
    return !this.value;
}).val('filter does work!, thanks G-od!');