Home > Software design >  How to get retrieve old input of an an input with number type using old method
How to get retrieve old input of an an input with number type using old method

Time:07-28

I've tried grabbing the old input when validation fails as shown below but it's not working. How can I grab it?

<input type="number" name="price" value="{{ old('price') }} "/>

CodePudding user response:

Mh, removing the white space after the last curly brace fixes the problem.

Final working code, <input type="number" name="price" value="{{ old('price') }}"/>

CodePudding user response:

Delete the empty space after the bracket

  • Related