Friday, December 14, 2012

android – How to show the button in dropdown event?

Hai i have a button and dropdown.When i change the dropdown i hide the button its working fine.Event after i want to show the button.how to do this.


once i hide i cannot view the button.i need to hide only the dropdown change function other time i want to show the button.


code



<html>
<head>
<script src=\"http://code.jquery.com/jquery-latest.js\"></script>
<script src=\"http://code.jquery.com/jquery-1.7.2.js\"></script>
</head>
<script type=\"text/javascript\">
$(document).ready(function() {
$(\"select\").change(function(){
$(\"#myHeader\").hide();
});
});
</script>
<body>

<select id=\"header\">
<option value=\"1\">1</option>
<option value=\"2\">2</option>
<option value=\"3\">3</option>
</select>
<input type=\"button\" id=\"myHeader\" style=\"width:20%;background-color:blue\" />
</body>
</html>






Rating: 1 out of 5 based on 3 ratings



The post android – How to show the button in dropdown event? appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/android-how-to-show-the-button-in-dropdown-event.html

No comments:

Post a Comment