I have an input field in the blade.
<div id="id1">
<input id ="text1" data-readOnly="true" data-max=300 value= 34/>
</div>
Script:
channel.bind('App\\Events\\ValueChange', function(data){
target = data.id;
value = data.value;
});
I need to bind the value = data.value; from the event to the attribute value in the Input field in the blade file.
How could I do this? Could someone please help.
Thanks.
inputlike you’ve demonstrated.value attribute, For ex, I used static value34, but the value should be returned from the Event. How to bind the value?