1

How can I add the custom button in the select box? Just like the clear button?

Because I'm using ajax, and want to save cache in the browser. enter image description here

Edwin Hui
  • 11
  • 5
  • you can append it (button snippet) on your result. – melvnberd Jul 15 '16 at 03:55
  • my bad.. you wanted it to be in select box.. I thought you want to add it on the result drop down just like what I did before "http://stackoverflow.com/questions/20977400/how-to-add-button-to-a-select2-dropdown-on-a-dynamic-table" – melvnberd Jul 15 '16 at 03:58
  • Sorry, I want the button add in the in the select box, no the drop down box. Just like the clear button. – Edwin Hui Jul 15 '16 at 04:06
  • Actually, I'm using the array/json source, and this array get as ajax from server, and save in the browser. I want a refresh button if I want to manually clear cache and reload again. For the array source, I don't know how to add a button in the drop down box also. – Edwin Hui Jul 15 '16 at 04:10
  • you should find the answer with below link http://stackoverflow.com/questions/20438381/can-we-add-textbox-and-button-to-select-2 – Ry Rith Mar 07 '17 at 01:59

0 Answers0