I am working on dropdownlist in asp.net. I want to hide dropdownlist when page load using jquery. How can do it ?
Any help will appreciate.Thank you
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anubhav ChaudharyPosted Oct 14, 2014, 3:29 AM
It's very simple, for page load use this function:-
$(document).ready(function(){});
and for hiding the dropdown write this code in ready function:-
$('#ID').css('display','none')
So, end code would be:-
$(document).ready(function(){
$('#ID').css('display','none')
});
Munesh SharmaPosted Oct 14, 2014, 2:31 AM
Munesh SharmaPosted Oct 14, 2014, 2:30 AM
http://forums.asp.net/t/2006967.aspx?Hide+Asp+net+dropdownlist+using+jquery