I encountered an issue with my jQuery code. Two days ago, it was working perfectly fine but now it's not functioning properly. I created a Demo here for reference.
Here is my code:
$(document).ready(function () {
$(".change").click(function () {
$(".pass").slideToggle("slow");
$(".pass1").slideToggle("slow");
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<a class="change">Change Password</a>
<br/>
<div class="pass">
<br />
<input type="password" class="textbox" placeholder="Current Password" name="old" id="old" size="20" />
<br/>
<br/>
<input type="password" class="textbox" placeholder="New Password" name="new" id="new" size="20" />
<br/>
<br/>
<br/>
<br/>
<br/>
<button class="add" name="go" id="go">Go</button>
<a style="padding-right:2ex;"></a>
<a class="change">
<button class="add" name="cancel" id="cancel">Cancel</button>
</a>
</div>
<br/>