Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Select multiple

<script type="text/javascript">
    $(document).ready(function() {
        $('#example-post').multiselect({
            includeSelectAllOption: true,
            enableFiltering: true
        });
    });
</script>
<form class="form-horizontal" method="POST" action="post.php">
    <div class="form-group">
        <label class="col-sm-2 control-label">Multiselect</label>
        <div class="col-sm-10">
            <select id="example-post" name="multiselect[]" multiple="multiple">
                <option value="1">Option 1</option>
                <option value="2">Option 2</option>
                <option value="3">Option 3</option>
                <option value="4">Option 4</option>
                <option value="5">Option 5</option>
                <option value="6">Option 6</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">Text Input</label>
        <div class="col-sm-10">
            <input type="text" name="text" class="form-control" placeholder="Text Input" />
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <div class="checkbox">
                <label>
                    <input type="checkbox" name="checkbox"> Checkbox
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <div class="radio">
                <label>
                    <input type="radio" name="radio"> Radio 1
                </label>
            </div>
            <div class="radio">
                <label>
                    <input type="radio" name="radio"> Radio 2
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">Submit</button>
        </div>
    </div>
</form>
Comment

html select multiple

$(".chosen-select").chosen({
  no_results_text: "Oops, nothing found!"
})
Comment

select2 multiple selected values

in_array($value, $array)
Comment

PREVIOUS NEXT
Code Example
Javascript :: react native elements bottom sheet 
Javascript :: star looping javascript 
Javascript :: javascript copy object except one property 
Javascript :: react native fontsize not affected by phone settings 
Javascript :: alert by code stackoverflow 
Javascript :: how to define cardTitle background image in mdl in reactjs 
Javascript :: create slug in express 
Javascript :: json date serialize 
Javascript :: jstree expend all node 
Javascript :: monaco editor cdn 
Javascript :: remove the last character from a string in JavaScript, 
Javascript :: ajax 
Javascript :: res.write in node js 
Javascript :: input tag data fetch html javascript 
Javascript :: javascript get elements by multiple class names 
Javascript :: Error: [Home] is not a <Route component. All component children of <Routes must be a <Route or <React.Fragment 
Javascript :: rating calculator formula javascript 
Javascript :: servicenow gliderecord lookup 
Javascript :: transition css with js 
Javascript :: blob to pdf javascript 
Javascript :: how to check element has event or not in jquery 
Javascript :: not equal to in js 
Javascript :: socket-client-io for reconnection in js or javascript 
Javascript :: upload image in firebase storage react web 
Javascript :: adding mui theme to index.js 
Javascript :: how to get today in moment js 
Javascript :: jest mock implementation once 
Javascript :: Towers of Hanoi, Iterative and Recursive 
Javascript :: toast notification angular bootstrap 8 
Javascript :: readmore jquery plugin 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =