how to make clicked a button with javascript -


i working @ php project have no idea javascpript somewhere in code needed make clicked , trigger event code can can me?

the code need trigger is

      $(document).ready(function(){        $(".btn-slide").click(function(){        $("#panel").slidetoggle("slow");        $(this).toggleclass("active"); return false;       });         }); 

my main aim run javascpript according coming variable other page that

        <?php                if($_post['passerr'] == "***pass format error!!***" ){            ?>            <script type="text/javascript">            $(".btn-slide").trigger("click");            </script>       <?php 

$(selector).click() triggers click event on items selected.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -