<script type="text/javascript"> 
     function dynaBlock(){
          var division=document.getElementById("dynamic_block"); 
          var go_btn=document.getElementById("GO"); 

             if(division.style.display=="none"){
                 division.style.display="block";
                 return true;
             }   
      }          

 </script>

function not defined says firebug. onclick="return dynaBlock()" in button. block is in DIV tag.
what to do?

Is your page online, so we can see?

Did you try taking out the return in your onClick? onClick="dynaBlock()"

it's done. In my company's framework javascript is not aloowed in head section. Putting it in body section, it worked.Thanks all for responding me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.