Home > Software engineering >  How to print option in html element div?
How to print option in html element div?

Time:02-10

I have a function that allows you to select between form options and etc, but I'm not finding a solution to show it in an element (DIV) Thanks!

<select data-placeholder="select the cars" 
        multiple  tabindex="8">
        <option>SP-São Paulo</option>
        <option>car 1</option>
        <option>car 2</option>
        <option>car 3</option>
        <option>cae 4</option>
        </select>
        </div>
                            
    <div id="log"></div> --select output


Java script

$(function(){
    $(".chosen-select").chosen({
        max_selected_options: 10,
        width: '100%'
    }); 
})

Image - Select ex:

CodePudding user response:

  •  Tags:  
  • Related