SoFunction
Updated on 2025-04-11

Methods that take effect after select changes in layui

The step of re-rendering a form in layui is more important. Some form elements need to be re-rendered before they can take effect, such as select

It is recommended to put the following function in js:

        //Re-render the form function renderForm(){
  ('form', function(){
  var form = ; //Only after this step is executed, some form elements will be automatically modified successfully   ();
  });
 }

Make a call after each operation of part of the form element

The above method to take effect after the select change in Layui is all the content I share with you. I hope you can give you a reference and I hope you can support me more.