How do I use uniqueId() jquery ui -
it seems jquery ui loaded because when run
$(function(){ // did ui load? console.log($.ui.version); });
the js console returns 1.10.3
i using gem https://github.com/joliss/jquery-ui-rails (most recent) , https://github.com/rails/jquery-rails version 2.1.4
i trying generate unique ids each youtube embed's iframe
$(".youtube_embed iframe").each.uniqueid();
am doing right? error in js console:
uncaught typeerror: object function ( callback, args ) { return jquery.each( this, callback, args ); } has no method 'uniqueid' 1:938 (anonymous function)
you should iterate each matching element , assign each element unique id.
$(".youtube_embed iframe").each(function() { $(this).uniqueid(); });
Comments
Post a Comment