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
Post a Comment