lundi 24 août 2015

Bootstrap Checkbox Others with textfield

I'm new to bootstrap but so far nothing comes up when i search for bootstrap checkboxes that need a custom field for "others". I'm using a horizontal form-control so width will be 100% which I need for mobile use.

Please take a look at the property type checkbox. I need an others field that must be full width of the column.

I've tried

<div class="checkbox">
    <label for="propertytype-8">
        <input type="checkbox" name="propertytype" id="propertytype-8" value="others">
    </label>
        <input id="propertytype_other" name="propertytype_other" type="text" value=""     placeholder="other" class="form-control">
</div>

which results in This Image

and

<div class="checkbox">
    <label for="propertytype-8">
        <input type="checkbox" name="propertytype" id="propertytype-8" value="others">
        <input id="propertytype_other" name="propertytype_other" type="text" value=""     placeholder="other" class="form-control">
    </label>
</div>

which results in This Image




Aucun commentaire:

Enregistrer un commentaire