Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть jQuery case insensitive attribute selector

  • kudvenkat
  • 2015-03-28
  • 107367
jQuery case insensitive attribute selector
jquery attribute contains selector case insensitivejquery attribute contains case insensitivecase insensitive jquery selectorjquery ' attribute value ' case insensitivejquery selector attribute value case insensitivejquery tutorialjquery tutorial for beginners
  • ok logo

Скачать jQuery case insensitive attribute selector бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно jQuery case insensitive attribute selector или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку jQuery case insensitive attribute selector бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео jQuery case insensitive attribute selector

Link for all dot net and sql server video tutorial playlists
https://www.youtube.com/user/kudvenka...

Link for slides, code samples and text version of the video
http://csharp-video-tutorials.blogspo...

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
   / @aarvikitchen5572  

In this video we will discuss, how to write a jQuery case-insensitive attribute value selector. Let us understand this with an example.

The following example, only selects DIV 1. This is because jQuery attribute value selector is case-sensitive.
[html]
[head]
[title][/title]
[script src="Scripts/jquery-1.11.2.js"][/script]
[script type="text/javascript"]
$(document).ready(function () {
$('div[title="DivTitle"]').css('border', '3px solid red');
});
[/script]
[/head]
[body]
[div title="DivTitle"]
DIV 1
[/div]
[br /]
[div title="DIVTITLE"]
DIV 2
[/div]
[br /]
[div title="divtitle"]
DIV 3
[/div]
[/body]
[/html]

Use the following code to make the jQuery attribute value selector case-insensitive
[script type="text/javascript"]
$(document).ready(function () {
$('div[title]').filter(function () {
return $(this).attr('title').toLowerCase() == 'divtitle';
}).css('border', '3px solid red');
});
[/script]

The above script should select all the 3 divs.

Now let us look at an example of making attribute contains selector [name*="value"], case-insensitive.

The following example, selects only DIV 1 element. This is because the attribute contains selector is case-sensitive.
[html]
[head]
[title][/title]
[script src="Scripts/jquery-1.11.2.js"][/script]
[script type="text/javascript"]
$(document).ready(function () {
$('div[title*="Div"]').css('border', '3px solid red');
});
[/script]
[/head]
[body]
[div title="DivTitle1"]
DIV 1
[/div]
[br /]
[div title="DIVTITLE2"]
DIV 2
[/div]
[br /]
[div title="divtitle3"]
DIV 3
[/div]
[/body]
[/html]

To make attribute contains selector case-insensitive, use filter() method and regular expression as shown below.
[script type="text/javascript"]
$(document).ready(function () {
$('div[title]').filter(function () {
return (/Div/i).test($(this).attr('title'));
}).css('border', '3px solid red');
});
[/script]

OR

[script type="text/javascript"]
$(document).ready(function () {
$('div[title]').filter(function () {
return RegExp('Div','i').test($(this).attr('title'));
}).css('border', '3px solid red');
});
[/script]

The above script should select all the 3 divs.

Visual Studio Keyboard Shortcuts
Convert Selected Text to Upper Case - CTRL + SHIFT + U
Convert Selected Text to Lower Case - CTRL + U

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]