A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Tag Archives: checkboxes

Django: Creating multiple select checkboxes with Forms

I got stuck for almost an hour trying to create a multiple select checkbox. Here is how to do it: First, I put this in my forms.py class UserlistForm(forms.Form): users = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple,label="Notify and subscribe users to this post:") Then in … Continue reading

Posted in General | Tagged , , , , | 3 Comments

jQuery: Setting defaults for Checkboxes, Radio Buttons, Options in Selectboxes

I thought I should post this here. I always tend to look back at my old code wondering how I did these things. Handling radio buttons or checkboxes <input type="radio" name="print_memo" value="Yes"/> Yes <input type="radio" name="print_memo" value="No" /> No <script … Continue reading

Posted in General | Tagged , , , , , , | 3 Comments