Layui SELECT Gets Custom Properties Method

 in Layui is given in Layui   Xi Bi   Fanta   Rock sugar Sydney   Jinbei       
Monitor Select

Form.on (‘SELECT (SADAS)’, Function (DATA) {Console.log (data.lem); // Get SELECT Original DOM object console.log (data.value); // Get selected value console.log (data.lem [data.elem.selected); console.log (data.lem [data.elected) .title);};

Also on the SELECT
   In the Layui, a specific several custom attributes are given. Title 

Please select attribute Sprite

Fanta

Rock candy Sydney
      Form.on ('SELECT (SADAS)', FUNCTION (Data ) {Console.log (data.em.getattribute (data-aid);// Get the select original DOM object console.log (data.value); // Get selected value console.log (data.lem [data.elem.selected); console.log (data.elec [data .Elem.selectedIndex] .title);});   The above Layui Select Gets the custom attribute method is the total content of Xiaobian sharing to everyone, hoping Give everyone a reference, I also hope that you will support Tumi Clouds.                      
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment