From action, based on the parameter values I receive in view , I want to hide or show the drop down box . Could some one suggest me what is the html option I can use in dropdownbox for this?
Thanks outrage for your response . But my case the dropdownlist should be there and it should be hidden . Because there is a Jquery script in this view that makes dropdownlist visible for some user actions .
In that case you need to use Javascript to hide the div on page load.
Something like:
<script>
if("<?php echo $place_type; ?>" == "true") {
...hide the div (change class with jquery maybe);
}
</script>
Very simple example but I’m sure you can figure it out Obviously the javascript will have to be called after the control has rendered otherwise it won’t exist.
You might be looking for this method though after re-reading your post: