javascript - What are the alternate ways of HREF in <asp:Button>, except OnClientClick to call inline div? -


i created hidden <div> on same page , call href="#" , it's working perfect, when use same code in asp.net due javascript or not sure why not working. first time when page loads it's working after due undesirable side effects it's not working it's strange...!!!

is there other / alternate way call hidden div on same page or without # instead href. tried following both ways:

onclientclick="location.href='#inline_content2" onclientclick="#inline_content2;" 

however, works shows div wihtout content :(

following original code working fine in plain html only:

href="#inline_content" 

so how call div on same page #inline_content without href?

set href="javascript:void(0);"
, keep other things usual.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -