JavaScript - forgot password link...display condition

Asked By anusha anu
10-Feb-12 08:28 AM

Hi Friends...
    I am having the task in my project. when the user login to the application provide the user name and password.
1.the problem is i don't want to show the forgot password link.
2.If wrong user name or password enter than i want to show the link...

What can i do for this in java vth javascript.
kindly requesting can you please give me a solution....

 Thanking you......
  Reena Jain replied to anusha anu
10-Feb-12 08:33 AM
hi,

For this you can put forgot password link in a div and then hide and show it accordingly I have one example for you

try something like this

<html>
<head>
  <title>Javascript Show Hide Div Visibility</title>
    
   <style type="text/css">
  .divStyle {
  width:200px;
  height:100px;
  margin:0px auto;
  }
  </style>
   
  <script language="javascript" type="text/javascript">
  function showHideDiv()
  {
  var divstyle = new String();
  divstyle = document.getElementById("div1").style.visibility;
  if(divstyle.toLowerCase()=="visible" || divstyle == "")
  {
  document.getElementById("div1").style.visibility = "hidden";
  }
  else
  {
  document.getElementById("div1").style.visibility = "visible";
  }
  }
  </script
</head>
 
<body>
 
  <div id="div1" class="divStyle">
  Show Hide Div visibility using Javascript DOM.
  </div>
    
  <center>
  <input type="button" value="show hide div" onclick="showHideDiv()" />
  </center>
    
</body>
</html>

Hope this will help you
  kalpana aparnathi replied to anusha anu
10-Feb-12 01:45 PM

hi,

Try this code:


<script>
$(document).ready(function(){ $("input#customer_email").change( function() { $("#li_customer_email_password").show() }); }); </script>

Create New Account
help
how to show / hide div in javascript / Hi, i have a web form.(shown in figure below) If Book Type = = 'whatever then i need to show in extra div below that to collect some extra information. else the div should be invisible. thank You. hi, try something like this < html > < head > < title Javascript Show Hide Div Visibility< / title > < style type = "text / css" > .divStyle { width:200px; height:100px; margin:0px
How to sum and display total in a label using javascript ASP.NET I am having a grid view as follows I have written a javascript to display Amount now I would like to display the total of Amount from the in the label avaiable. This is my script to display Amount 1. <script type = "text / javascript" > 2. function multiplication(txtQuantity, txtRate, txtAmount) { 3. var totalDTH = 0; 4. var weight = document.getElementById Thanks Hi I have written for multiplying rate and quantity what I need is to show the total Amount in that label as per your script it is showing only the Namespace = "AjaxControlToolkit" TagPrefix = "asp" %> < asp:Content ID = "Content1" ContentPlaceHolderID = "ContentPlaceHolder1" runat = "Server" > <%- -< script type = "text / javascript" > function disableEnterKey(e) { var key; if(window.event) key = window.event.keyCode; / / IE else key = e.which; / / firefox return (key ! = 13); } < / script > - -%> < script type = "text / javascript" src = "http: / / ajax.googleapis.com / ajax / libs / jquery / 1.4 / jquery.min.js" > < / script > < script src = "tooltipinv / js.js" type = "text / javascript" > < / script > < script type = "text / javascript" > function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = (evt.target) ? evt
p> <style type = "text / css"> .font12{ font:normal 12px Arial, Helvetica, sans-serif; }< / style> < / p> <div> Subscribe< / div> <div> &nbsp;< / div> <table cellspacing = "0" cellpadding = "0" width = "80%" class = "font12"> <tbody> <tr> <td width = "30%"> Voornaam class = "searchboxbutton" / > < / span> < / td> < / tr> < / tbody> < / table> Now, when i click to subscribe i get javascript error: budgetmailer_form’ is not defined I think: html does not seem to allow a <form stylesheet" / > < / head > < body > < form name = "aspnetForm" method = "post" action = "97-aanmeldformulier-nieuwsbrief.aspx" id = "aspnetForm" > < div > < input type = "hidden" name = "_ _EVENTTARGET" id = "_ _EVENTTARGET" value = "" / > < input type = "hidden" name = "_ _EVENTARGUMENT" id = "_ _EVENTARGUMENT DQogICAgICAgIDwvdHI+DQogICAgICAgIDx0cj4NCiAgICAgICAgICAgIDx0ZCBoZWlnaHQ9IjEwIj4mbmJzcDs8L3RkPg0KICAgICAgICA8L3RyPg0KICAgICAgICA8dHI+DQogICAgICAgICAgICA8dGQ+VHVzc2Vudm9lZ3NlbDo8L3RkPg0KICAgICAgICAgICAgPHRkPjxpbnB1dCBtYXhsZW5ndGg9IjEwIiBzaXplPSIyNSIgbmFtZT0idHVzc2Vudm9lZ3NlbCIgdHlwZT0idGV4dCIgLz48L3RkPg0KICAgICAgICA8L3RyPg0KICAgICAgICA8dHI+DQogICAgICAgICAgICA8dGQgaGVpZ2h0PSIxMCI+Jm5ic3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VhcmNoYm94YnV0dG9uIiB0eXBlPSJidXR0b24iIG9uY2xpY2s9IndpbmRvdy5vcGVuKCcnLCdidWRnZXRtYWlsZXJfd2luZG93Jywnd2lkdGg9MzAwLGhlaWdodD04MCx0b29sYmFyPTAnKTsNCmJ1ZGdldG1haWxlcl9mb3JtLmZvcm1fYWN0aW9uLnZhbHVlPSctMSc7DQp2YXIgYT13aW5kb3cuc2V0VGltZW91dCgnZG9jdW1lbnQuYnVkZ2V0bWFpbGVyX2Zvcm0uc3VibWl0KCk7Jyw1MDApOyIgdmFsdWU9IkFmbWVsZGVuIiAvPjwvc3Bhbj48L3RkPg0KICAgICAgICA8L3RyPg0KICAgIDwvdGJvZHk+DQo8L3RhYmxlPmRkGAMFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYEBUVjdGwwMCRjdGwwMCRjdHJsSGVhZGVyJGN0cmxMYW5ndWFnZVNlbGVjdG9yJERsTGFuZ3VhZ2VzJGN0bDAwJGltZ2ZsYWcFRWN0bDAwJGN0bDAwJGN0cmxIZWFkZXIkY3RybExhbmd1YWdlU2VsZWN0b3IkRGxMYW5ndWFnZXMkY3RsMDEkaW1nZmxhZwUyY3RsMDAkY3RsMDAkY3RybEhlYWRlck1lbnUkY3RybFNlYXJjaEJveCRja2hUb3BpY3MFNGN0bDAwJGN0bDAwJGN0cmxIZWFkZXJNZW51JGN0cmxTZWFyY2hCb3gkY2hrUHJvZHVjdHMFSWN0bDAwJGN0bDAwJGNwaDEkY3BoMiRjdHJsUmVjZW50bHlWaWV3ZWRQcm9kdWN0cyRsdlJlY2VudGx5Vmlld2VkUHJvZHVjdHMPZ2QFI2N0bDAwJGN0bDAwJGN0cmxIZWFkZXIkdG9wTG9naW5WaWV3Dw9kAgFks2KH0sjHoaiHBVpvUqrfzXnKZTw = " / > < / div > < script type = "text / javascript" > / / <![CDATA[ var theForm = document.forms['aspnetForm']; if (!theForm) { theForm = document.aspnetForm; } function _ _doPostBack(eventTarget, eventArgument
jquery ui plugin you can use jquery Accordian like this- <script> $(function() { $( "#accordion" ).accordion(); }); < / script> <div id = "accordion"> <h3> <a href = "#"> Section 1< / a> < / h3> <div> < / div> <h3> <a href = "#"> Section 2< / a> < / h3> <div> < / div> <h3> <a href = "#"> Section 3< / a> < / h3> <div> < / div> < / div> For more help follow this link- http: / / jqueryui.com / demos / accordion / Here you will get
setting div i have two div'ss <div style = "height = 10px;"> <div style = "height = 50px;" id = "a" runat = "server"> control < / div> < / div> now the control is getting displaced. . . . .i cannot change height og div with id = a. . . is there any way i can adjust the height of control??? YOu can set the height of DIV directly in code behind like this; a.Style.Add( "height" , "500px" ); This will set your