jsp - How to call div tag in JavaScript function? -


<div id="cd-signup">         <!-- sign form -->         <form name="joinform" class="cd-form" id="joinform" method="post">             <input type="hidden" name="act" value="register">             <div class="modal-dialog">                 <div class="modal-content">                     <div class="modal-header">                   .....                   .... 

function testapi() {     console.log('welcome!  fetching information.... ');     fb.api('/me?fields=id,name,email,permissions', function(response) {         console.log('successfulllll login for: ' + response.name);         name=response.name;         alert(name+"===="+response.email);         //here want call div tag      }); } 

now i'm using facebook api , want call sign form, when finish facebook login.

please me.

define 'call div tag'? can focus calling $('div').focus();

if want want open modal dialog box make sure bootstrap js on page , can call $('#modalid').modal('show'); make sure id calling has class="modal" on it.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)