JS button trigger event


. $ ( "# the above mentioned id") onclick ();
// actually use the program to click a button to trigger the onclick () event,
// NOTE: After hiding to die, do not use Visiable set hidden attribute, use style. = none Run the display

. $ ( "# the above mentioned id") the Click ();
// just calling the method onclick points to
// Note: just call the method only, not the triggering event

Guess you like

Origin www.cnblogs.com/t-young1201/p/12620887.html