Topic: md-form error on submit

Alan van Buuren pro asked 5 years ago


Hi, my error is when refresh my view with a post (@Ajax.BeginForm the field loss the aparience. this is the example   for the select i init this function with the code $('.mdb-select').material_select(); but, i don't know what is for the inputs (text, etc)

Alan van Buuren pro answered 5 years ago


Thnx, i upgrade the version... but, the problem persist, i did read in anothers pages, this is solved with Materialize.updateTextFields(); but in this template i can't invoque Materialize. Example form after submit

Jakub Mandra staff answered 5 years ago


Regular inputs don't need extra js code for initialization (select is just the most complex). Regarding to your problem, I see that you wrote in the specification, that you use MDB Version: 4.5.9 - issue with inputs was resolved in next version (now we have v.4.5.11), so please upgrade your MDB package :)   Best regards, Jakub

Alan van Buuren pro commented 5 years ago

Another user solved this problem. (After 2 years) R'lly? https://mdbootstrap.com/support/general/pre-filling-input-fields-with-javascript-leaves-label-blocking-field-content/

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.9
  • Device: PC
  • Browser: Firefox
  • OS: Win10
  • Provided sample code: No
  • Provided link: No