Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jquery 3 and izi #182

Open
esseti opened this issue Mar 21, 2018 · 2 comments
Open

jquery 3 and izi #182

esseti opened this issue Mar 21, 2018 · 2 comments

Comments

@esseti
Copy link

esseti commented Mar 21, 2018

Hello,
is there a specific version of jquery to use? If i import the version 3 it seems to not be working

TypeError: this.selector is undefined
...

  $.fn[PLUGIN_NAME] = function(option, args) {


    	if( !$(this).length && typeof option == 'object'){

    		var newEL = {
    			$el: document.createElement('div'),
    			id: this.selector.split('#'),
    			class: this.selector.split('.')
    		};

the problem is on the this.selector of the id

@UsepRusnandar
Copy link

id: this.selector.split('#'),

because split is String function. You can change the statement

id: String(this.selector).split('#')

but its still doesn't solve the whole problem.

Still not working using JQuery 3

@UsepRusnandar
Copy link

Hi ...
Thank you God. This library turns out to be running with jquery 3.

Make sure you have an element that has the correct id

for example:
javascript: $("#modal-change-application-pwd").iziModal();

then make sure you have element with id 'modal-change-application-pwd'
like <div id="modal-change-application-pwd"></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants