Questions tagged as 'jquery-select2'

4
answers

Select2 with AJAX

For some reason my Select2 using AJAX to populate it is not working. When I put a debugger in the code, it does not enter the result: method and also does not return any errors. HTML: <input type="hidden" class="bigdrop select2-of...
asked by 25.02.2014 / 18:52
2
answers

When selecting option displays div with

I have a question, since I do not handle anything with PHP , I would like someone to help me with how to mount or implement a Jquery that I found. In my case there are 2 selects , one that would be dubbed Estado and anoth...
asked by 18.05.2015 / 17:18
1
answer

Perform mathematical calculations with values from a PivotTable

I have a table in form-wizard that as soon as I click on "add item" I call a function and it adds a row in the table to add a new item to be purchased by the client. This table with each click adds an item has an autocomplete function in the...
asked by 26.06.2014 / 20:08
1
answer

Search for the title of the option using selec2

I have a select element and I need to search the options not only for the text, but also for the title (or any other attribute), I have already been able to put the title to appear when the element expands, but I can not do a search on it. I'...
asked by 27.11.2015 / 19:28
2
answers

Bug when using Select2 in a Bootstrap form-group

I'm having trouble fixing a bug that happens when I use Select2 in a input-group . The problem is that by selecting a option with a very long name, input-group does not respect the width of the parent element. <div cla...
asked by 14.11.2014 / 19:25
1
answer

How to concatenate an input name with a variable in jQuery?

I have a table that contains a button that adds a row to the table each time I click on it. The line created has 4 inputs, one of these inputs has an auto-suggest / auto-complete function that searches information in the database and returns thi...
asked by 25.06.2014 / 14:13
3
answers

how to execute a specific button in a list of 5 identical buttons

I'm doing a dashboard with users and need an edit button. When the edit button runs it just makes code appear and disappear, but wanted to know if it's possible to execute jQuery code and select the button id. <aid="1" class="edit">E&l...
asked by 07.10.2016 / 12:34
2
answers

Remove Select2 parameters

I have a problem using the Select2 plugin, I need to make an AJAX request, but I need the final URL to be as follows: api/user/findbyname/name And the way it's coming is this: api/user/findbyname/?q=name&_=1395243972884 My code is...
asked by 19.03.2014 / 16:52
1
answer

How to select a select option with javascript / jquery

I have two selects , one for employee and one for function, and it is necessary that when an employee is selected the function of that employee is already selected automatically. This alert works perfectly, but I need instead to...
asked by 08.08.2016 / 21:45
1
answer

Value as Object when selecting item in Select2

The Select2 plugin works normally, the only problem is when I make the item selection the value set in the hidden (mandatory to bring data via AJAX) stays as [Object Value] and not the value specified by the format. Follow form...
asked by 24.07.2014 / 15:41