Entertainment
Learn what you want, when you want, where you want
No course found for your searching criteria
function onlyUnique(value, index, self) {
return self.indexOf(value) === index;
}
jQuery(document).ready(function(e) {
if(jQuery(".llms-course-list li").length < 1)
{
jQuery(".no_course_found").css("display","block");
}
var authorNamesTags = [];
jQuery(".author_names_courses").each(function(index, element) {
authorNamesTags.push(jQuery(this).val());
});
var authorNamesTags = authorNamesTags.filter(onlyUnique);
jQuery( "#txt_course" ).autocomplete({
source: authorNamesTags,
select: function( event, ui ) {
jQuery("#txt_course").val(ui.item.value);
jQuery("#course_submit_search").click();
}
});
});
.ui-widget.ui-widget-content {
height: 300px !important;
overflow-x: auto;
}
.ui-autocomplete li div {color:#424240}
No course found for your searching criteria