jQuery slider in asp net

  Рет қаралды 24,583

kudvenkat

kudvenkat

Күн бұрын

Link for all dot net and sql server video tutorial playlists
www.youtube.co...
Link for slides, code samples and text version of the video
csharp-video-tu...
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 KZbin channel. Hope you can help.
/ @aarvikitchen5572
In this video we will discuss using jQuery slider widget in an asp.net web forms application.
We want to increase and decrease the font-size using the slider
HTML
<div id="slider"></div>
<br />
<div id="myDiv" style="font-size: 20px">
Slider Example
</div>
jQuery code
$(document).ready(function () {
var divElement = $('#myDiv');
$('#slider').slider({
min: 20,
max: 120,
orientation: 'horizontal',
slide: function (event, ui) {
divElement.css('font-size', ui.value + 'px');
}
});
});
For the complete list of slider options and events
api.jqueryui.co...
Options
min - The minimum value of the slider. The default is 0
max - The maximum value of the slider. The default is 100
orientation - Horizontal or vertical orientation of the slider
Events
start - Triggered when the user starts sliding
stop - Triggered when the user stops sliding
slide - Triggered on every mouse move during slide
The following example handles start, stop and slide events of the slider widget
HTML
<div id="slider"></div>
<br />
<div id="divStart"></div>
<div id="divStop"></div>
<div id="divSlide"></div>
jQuery Code
$(document).ready(function () {
$('#slider').slider({
min: 20,
max: 120,
orientation: 'horizontal',
start: function (event, ui) {
$('#divStart').html('Start = ' + ui.value);
},
stop: function (event, ui) {
$('#divStop').html('Stop = ' + ui.value);
},
slide: function (event, ui) {
$('#divSlide').html('Slide = ' + ui.value);
}
});
});

Пікірлер: 3
@10010paka
@10010paka 9 жыл бұрын
I have seen all JQuery Vedio. It is very nice explanation. Thank you so much.
@Therapyxx
@Therapyxx 9 жыл бұрын
Great options, thanks. Sometime it could be useful =) Btw. how to do the same thing but with drop down list and c#(asp.net). I know one way but its too difficult. Im interesting how would you do it in this situation.
@developernader
@developernader 9 жыл бұрын
Thank you
jquery range slider
12:24
kudvenkat
Рет қаралды 41 М.
jQuery accordion in asp net
16:02
kudvenkat
Рет қаралды 31 М.
Girl, dig gently, or it will leak out soon.#funny #cute #comedy
00:17
Funny daughter's daily life
Рет қаралды 48 МЛН
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,5 МЛН
asp net multiple file upload with progress bar
18:36
kudvenkat
Рет қаралды 78 М.
How to win a argument
9:28
ajaxkmr
Рет қаралды 553 М.
Everyone is WRONG about Linux
13:04
Arnau's Disrepair
Рет қаралды 132
Autocomplete textbox using jquery in asp net
17:30
kudvenkat
Рет қаралды 87 М.
jquery show hide password
11:00
kudvenkat
Рет қаралды 38 М.
Bootstrap Tutorial - #7 Create slideshow | Asp.net mvc
11:52
Technotips Ashish
Рет қаралды 23 М.
jQuery DOM manipulation methods
16:55
kudvenkat
Рет қаралды 100 М.
jquery tooltip widget
8:32
kudvenkat
Рет қаралды 30 М.
Girl, dig gently, or it will leak out soon.#funny #cute #comedy
00:17
Funny daughter's daily life
Рет қаралды 48 МЛН