Comments 2Rodolfo started the conversationAugust 22, 2016 at 6:29pmHello , I'm having trouble adding selection fields " selectbox " in modals . The same does not display the field.http://connectprime.com.br/call/ui-modals.htmlClick in "Show Me" on Responsive ModalThanks[deleted] repliedAugust 24, 2016 at 2:02pmHi Rodolfo,After initiating the modal pop up, please execute this JavaScript: $("select.selectboxit").each(function(i, el){ var $this = $(el), opts = { showFirstOption: attrDefault($this, 'first-option', true), 'native': attrDefault($this, 'native', false), defaultText: attrDefault($this, 'text', ''), }; $this.addClass('visible'); $this.selectBoxIt(opts);});This will render select boxes properly. 2Rodolfo repliedOctober 3, 2016 at 7:29pmHi!Not work.. Error: 'attrDefault is not defined'[deleted] repliedOctober 4, 2016 at 12:31pmHi Rodolfo, Include in that code the following function so it should be something like this: // Element Attribute Helper function attrDefault($el, data_var, default_val) { if(typeof $el.data(data_var) != 'undefined') { return $el.data(data_var); } return default_val; } $("select.selectboxit").each(function(i, el) { var $this = $(el), opts = { showFirstOption: attrDefault($this, 'first-option', true), 'native': attrDefault($this, 'native', false), defaultText: attrDefault($this, 'text', ''), }; $this.addClass('visible'); $this.selectBoxIt(opts); }); And check if it works for you? 2Rodolfo repliedOctober 4, 2016 at 10:30pm$this.selectBoxIt is not a functionHiho.. [deleted] repliedOctober 6, 2016 at 11:29amCan you please give me the URL of this page and tell me how to access the form issue? Rodolfo replied privately[deleted] repliedOctober 20, 2016 at 12:34pmHi Rodolfo,After the modal is displayed with the fields, please call this function: selectBoxItFields();It will render selectboxit field, just don't forget to add the class "selectbox it" to select elements currently containing only "form-control" class. Sign in to reply ...
Hello ,
I'm having trouble adding selection fields " selectbox " in modals . The same does not display the field.
http://connectprime.com.br/call/ui-modals.html
Click in "Show Me" on Responsive Modal
Thanks
Hi Rodolfo,
After initiating the modal pop up, please execute this JavaScript:
This will render select boxes properly.Hi!
Not work..
Error: 'attrDefault is not defined'
Hi Rodolfo,
Include in that code the following function so it should be something like this:
And check if it works for you?
$this.selectBoxIt is not a function
Hiho..
Can you please give me the URL of this page and tell me how to access the form issue?
Hi Rodolfo,
After the modal is displayed with the fields, please call this function:
It will render selectboxit field, just don't forget to add the class "selectbox it" to select elements currently containing only "form-control" class.