Title: Can't get input value from laravel contoller
Tags: javascript;laravel;laravel-5;model-view-controller;laravel-5.6
Question: I update input with id='total' with event onchange. When I fill quantity input,  the input total is updated with correct value  but when i try to get the value from controller, it returns null. Any idea? Thanks
This is the code:
<div class="form-group" &gt;
<input type="text" name="quantity" class="form-control" id="quantity" onchange="updateInput(this.value)"  &gt;
</div&gt;
</td&gt;
<td align="center"&gt;
<div class="form-group "&gt;
<input type="text" class="form-control" id="total" name="total" value="" disabled &gt;
</div&gt;
</td&gt;
And this is function onchange
function updateInput(x)
var price=parseFloat(document.getElementById('price').value);
document.getElementById('total').value=parseFloat(x)*price;


Here is another answer: Solved it, just removed disabled attribute and it works.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2018:00:08/02/18', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<javascript><laravel><laravel-5><model-view-controller><laravel-5.6>', 'Title': "Can't get input value from laravel contoller", 'ViewCount': 37, 'id': 51663280, 'user_AboutMe': None, 'user_AccountId': 12438356.0, 'user_DisplayName': 'AnonS', 'user_Reputation': 183.0, 'user_Views': 8.0, 'user_id': 9057777.0}}