skip to Main Content

Can I create a jQuery iterating function?

I have the following function which hides or shows the input and label of a field depending on the value of a select field: function handle_select_change(obj) { var selectField = jQuery(obj); var selectedValue = selectField.val(); var textareaField = obj.parents('.cheryr-ui-repeater-content-box').find('textarea'); if…

VIEW QUESTION

How do I get values using Select2 in JQuery?

I have multiple select that contains options of languages and I want to get the values selected. I tried that using by retrieve the value from the id but nothing shown in the console. $('#language').select2(); <select id="language" class="form-control" multiple="multiple" data-toggle="select2">…

VIEW QUESTION
Back To Top
Search