Home > Web Front-end > HTML Tutorial > How to make Materialize CSS checkbox work with @Html.CheckBoxFor?

How to make Materialize CSS checkbox work with @Html.CheckBoxFor?

PHPz
Release: 2023-08-29 17:57:06
forward
1106 people have browsed it

如何使Materialize CSS复选框与@Html.CheckBoxFor一起工作?

The only way to concretize a CSS checkbox for use with Html.checkbox without making the left checkbox disappear is to move the hidden element to the bottom of the parent element .

$("input[type='hidden']").each(checkbox1 (0,IsActive ) {
   $(this).appendTo($(IsActive).parent());
});
Copy after login

In this hidden element, the IsActive is placed at the bottom of the parent element, thus eliminating the disappearance of the left checkbox, thereby materializing the CSS checkbox to go with HTML.checkbox use.

The above is the detailed content of How to make Materialize CSS checkbox work with @Html.CheckBoxFor?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template