0

I have a custom Onsen Dialog with two buttons, and these buttons have onclick code in their html. I create this dialog using a template, and later when I try to hide this dialog with method like this

var dialog = document.getElementById("dialogSearchFriend");
dialog.hide();

I get an error "hide() is not a function".

I debugged this, and the dialog variable seems to be a template, rather than a dialog.

How can I solve this?

Sartheris Stormhammer
  • 2,534
  • 8
  • 37
  • 81

1 Answers1

0
window.onload=function(){

     $("#dialogSearchFriend").fadeOut();
}
KOUSIK MANDAL
  • 2,002
  • 1
  • 21
  • 46