When I tried to change the value upon clicking the option in the datalist the values are not changing in the placeholder. When I choose "Farmer" am getting "Farmer", but I need to get "Search Farmer Here..." and so on.
<input type="text1" list="browsers" name="browser" id="browser" placeholder="Search Here..">
<datalist id="browsers" style="font-size:20pt;">
<option value="Farmer">
<option value="Input products">
<option value="Output products">
<option value="Customers">
<option value="Suppliers">
<option value="Sales Invoices">
<option value="Purchase Bills">
<option value="Payments">
<option value="collections">
</datalist>
I tried by passing id like below
$("#yourtextboxid").attr("placeholder", "variable");
also I tried
document.getElementsByName('Email')[0].placeholder='new text for email';
but still am not getting required results. Did I missed any syntax?