Summary
Keywords
Full Transcript
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/07/jquery-selectable-widget.html 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. https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA/?sub_confirmation=1 In this video we will discuss jQuery selectable widget jQuery selectable widget allows us to select elements, individually or in a group using the mouse. Let us understand this with an example. Here is the example code used in the demo HTML <ul id="selectable"> <li>Mon</li> <li>Tue</li> <li>Wed</li> <li>Thu</li> <li>Fri</li> <li>Sat</li> <li>Sun</li> </ul> You selected : <div id="result"></div> CSS li{ display:inline-block; padding:20px; border:1px solid black; cursor:pointer } .ui-selected{ background-color:green; color:white } .ui-selecting{ background-color:grey; color:white } jQuery $(document).ready(function () { $('#selectable').selectable({ stop: function () { var result = ''; $('.ui-selected').each(function () { result += $(this).text() + '<br/>'; }); $('#result').html(result); } }); });
