Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

Tuesday, March 29, 2016

Prevent scrolling of the page when pop-up is open


Solution#1 

On modal popup open add following css
body {
    overflow: hidden;
}

Tuesday, February 24, 2015

Select drop-down list in jquery

  Get selected value using class :-
$(".drop_down_class").val();


Get selected value using Id :-
$("#drop_down_id").val();


Get text of selected value :-
$("#drop_down_id").text();