jquery - checkradiobox in javascript can't create -
i'm trying implement checkradiobox jquery ui in code in javascript keeps returning error saying cannot created. can point me in right direction?
here code:
var hk_button = document.createelement ('input'); $( "hk_button" ).checkboxradio({label = "h k 0", icon = false }); i've attempted label hk_button start creating var label = document.createelement ('label') see if fix error no avail.
thank you
$( "hk_button" ) not select anything. not how jquery works. instead can create element so:
var $hk_button = $("<input>"); and deal checkboxradio targeting $hk_button.
and append parent element making use of .append();.
hope helps!
Comments
Post a Comment