Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="text" name="create--post--youtube">
- <small>Введите название или вставьте ссылку видео YouTube</small>
- <script>
- $('input[name=create--post--youtube]').change(function(){
- var value = $(this).val();
- if (...) {
- console.info('Введён поисковой запрос');
- } else {
- console.info('Введена ссылка на видео YouTube');
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement