JSFiddle - React, Tailwind, and code Playground
by vikastyagi87
HTML
<input id='hiddenId' type='text' value='chalk & cheese' />
<input type='text' id="abc" value="" />
JavaScript
$(document).ready(function(){
var hiddenId= $("#hiddenId").attr('value');
alert(hiddenId);
// $('<div/>').text('This is fun & stuff').html();
alert($("input[type=text]").val(hiddenId));
});