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

Uncaught TypeError: Cannot read property 'ddslick' of null #17

Closed
micker opened this issue Jun 18, 2019 · 2 comments
Closed

Uncaught TypeError: Cannot read property 'ddslick' of null #17

micker opened this issue Jun 18, 2019 · 2 comments
Labels

Comments

@micker
Copy link

micker commented Jun 18, 2019

hello i try to add ddslick in my form ..
1 i add library
2 i add select sample
<select id="select-marker"> <option value="0" data-imagesrc="http://i.imgur.com/XkuTj3B.png" data-description="Description with Facebook">Facebook</option> <option value="1" data-imagesrc="http://i.imgur.com/8ScLNnk.png" data-description="Description with Twitter">Twitter</option> <option value="2" selected="selected" data-imagesrc="http://i.imgur.com/aDNdibj.png" data-description="Description with LinkedIn">LinkedIn</option> <option value="3" data-imagesrc="http://i.imgur.com/kFAk2DX.png" data-description="Description with Foursquare">Foursquare</option> </select>

jQuery(document).ready(function() { $("#select-marker").ddslick({ onSelected: function(selectedData){ //callback function: do something with selectedData; } }); });
the error is Uncaught TypeError: Cannot read property 'ddslick' of null
some idea ?

@micker
Copy link
Author

micker commented Jun 20, 2019

somebody ?

@oizulain
Copy link
Collaborator

You invoke jQuery using "jQuery" and you then invoke jQuery using "$", I'm guessing jQuery is not available as "$" in your page?

Try:
jQuery("#select-marker").ddslick({ onSelected: function(selectedData){ //callback function: do something with selectedData; } }); });

This does not look like a ddslick issue anyway, so I'm closing

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

No branches or pull requests

2 participants