문제

How can I check an iCheck checkbox using JavaScript? Already tried the code:

document.getElementById("checkbox").checked = true;

올바른 솔루션이 없습니다

다른 팁

From the Documentation:

$('input').iCheck('check');

It'd be good to read the documentation of any plugins you find online, as they usually contain many answers to your questions, thus avoiding the need to ask in forums.

Use $(element).iCheck('check'); where element is replaced with the desired element, e.g. document.getElementById('elementIdHere').

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top