marvicrm / youtube_autocomplete
A very lightweight YouTube search autocomplete. No javascript library needed!
Package info
github.com/marvicrm/youtube_autocomplete
Language:JavaScript
Type:project
pkg:composer/marvicrm/youtube_autocomplete
This package is not auto-updated.
Last update: 2026-03-27 02:25:16 UTC
README
A very lightweight YouTube search autocomplete. No javascript library needed!
This is not just a youtube autocomplete, it will also suggest any keywords available on google.
Screenshot
Basic Usage
<!-- Important file to include: CSS & JS file -->
<link rel="stylesheet" href="youtube_autocomplete.css" />
<script src="youtube_autocomplete.js"></script>
<!-- Calling the autocomplete -->
<script>
Youtube_AC.Init();
</script>
<!-- Then just put an id 'youtube_ac' into your search box -->
<input type="text" id="youtube_ac">
Optional Parameters
Youtube_AC.Init(limit,minchar);
Where:
limit = the number of max results on autocomplete. Default = 8
minchar = the number of min input characters needed in order to fire the autocomplete event. Default = 3
Installation
Composer:
- composer require "marvicrm/youtube_autocomplete":"dev-master"
Manual:
- Download the project as zip file, extract on your desired folder
Please run the demo.html for actual testing