This article mainly introduces how to use jquerytrigger to trigger the click Event of a tag to replace the window. open method. For more information, see
Var ohtml =''+'
You have successfully sent a friend application.
'+'Upload a real avatar. It is easier for a friend to apply for an Avatar. Upload it now!
'+'/Teacher/editUserAvatar. action "target =" _ blank "> '+''; $. Dialog ({lock: true, title: 'tip ', button: [{value: 'click to upload image', callback: function () {$ ("# awindowopen "). trigger ("click") ;}, focus: true}], content: ohtml}); var ohtml =''+'
You have successfully sent a friend application.
'+'Upload a real avatar. It is easier for a friend to apply for an Avatar. Upload it now!
'+'/Teacher/editUserAvatar. action "target =" _ blank "> '+''; $. Dialog ({lock: true, title: 'tip ', button: [{value: 'click to upload image', callback: function () {$ ("# awindowopen "). trigger ("click") ;}, focus: true}], content: ohtml });
Note that:
In this place:
/Teacher/editUserAvatar. action "target =" _ blank ">/teacher/editUserAvatar. action "target =" _ blank "> the tag must contain content, and the content in the tag must be clicked rather than clicked.