mardi 7 mars 2017

'ticked' checkbox in php wordpress [duplicate]

This question already has an answer here:

i am totally new to coding. So seeking for help in creating a simple "ticked" checkbox on the following codes. I am just adding in a simple code as i just wanted to DIY this feature. Tried looking for tutorials, but in vain...Hopefully, someone can help me out :)

Here's a snippet of the code from a wordpress backend plugin. And i just wanted to the checkbox 'checked'for convenience when loading..appreciate it.. hopefully, the snippet makes sense.. thanks!

echo '<tr>';
    echo '<th valign="top" class="label" scope="row">';
    echo '<input type="checkbox" class="chkLink alignleft">';
    echo '<span class="alignleft"><label for="cartoon">';
    _e('Source URL', 'cartoon');
    echo '</label></span>';
    echo '<span class="alignright"><abbr class="required" title="required">*</abbr></span>';
    echo '</th>';




Aucun commentaire:

Enregistrer un commentaire