How to do this
How to do this
I have this code here
<script>
$(document).ready(function(){
$("button").click(function(){
$("select").hide();
});
});
</script>
So I understand basics of jquery but bigger problem is with how to go beyond basics. So On my page i have <button>button name</button>
when i click it, all elements "select" will hide. How to unhide them?
I tried this, but it does not work.
<script>
$(document).ready(function(){
$("button").click(function(){
if $("select").hide()== true {
$("select").show();
}
else
{
$("select").hide();
};
});
});
</script>
Topic Participants
masterexmachina
jay.blanchard