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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Munesh SharmaRank #174 · 13.9K reputationPosted Oct 13, 2014, 10:30 PM EDT
http://forums.asp.net/t/2006967.aspx?Hide+Asp+net+dropdownlist+using+jquery
Munesh SharmaRank #174 · 13.9K reputationPosted Oct 13, 2014, 10:31 PM EDT
Anubhav ChaudharyRank #29 · 42K reputationPosted Oct 13, 2014, 11:29 PM EDT
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')
});