bootstrap multiselect get selected values

前端 未结 7 1527
难免孤独
难免孤独 2021-01-31 16:39

How do I get back on onChange all selected values in my multiselect dropdown. Used plugin here. Trying to use the following but I think I\'m on the wrong track

$         


        
7条回答
  •  悲哀的现实
    2021-01-31 17:30

    In my case i was using jQuery validation rules with

    submitHandler function and submitting the data as new FormData(form);

    Select Option

    
    
    
    

    Get the multiple selected value and set to new_branch input value & while submitting the form get value from new_branch

    Just replace hidden with text to view on the output

    
    

    Script (jQuery / Ajax)

    
    

提交回复
热议问题