this question has answer here:
my code :
<div data-role="page" id="loginpage"> <div data-role="header"> <p style="text-align:right;">welcome</p> </div> <div data-role="main" class="ui-content"> <center><img src="taybe.png" style="width:80%; height:80%;" /></center> <p style="text-align:right;">id number</p> <input type="number" id="useridtxt"/> <p id="idnote" style="text-align:right;color:red;"></p> <p style="text-align:right;">pass</p> <input type="password" id="userpasstxt"/> <p id="passnote" style="text-align:right;color:red;"></p> <table style="width:100%;"> <tr > <td style="width:45%; height:80%;"><input type="button" value="login" onclick="checkdetails()" /></td> <td style="width:45%; height:80%;"><input type="button" value="visitor" /></td> </tr> </table> <input style="width:100%; height:10%;" type="button" value="register" /> </div> <div data-role="footer"> </div> </div>
and here homepage want open if example id 1234 , password 123123123
<div data-role="page" id="homepage"> <div data-role="header" data-tap-toggle="true" data-theme='b'> here homepage </div> </div>
what need write access homepage in checkdetails fucntion ?
if (($("#useridtxt").val() == "3164") && ($("#userpasstxt").val()) == "12345678") { /*what need type here ???*/ }
simply,
$('#loginpage').hide(function(){ $('#homepage').show(); })
Comments
Post a Comment