0
我正在創建一個基於laravel的網站,我有一個登錄表單,當我按「註冊」時,我想用註冊表單進行切換,但它不工作。以下是碼。 home.js:無法在laravel中切換登錄和註冊表單
$('.message a').click(function(){
$('form').animate({height: "toggle", opacity: "toggle"}, "slow");
});
home.blade.php
<html>
<head>
<title> AgroHelp Login</title>
<link href="{{asset('css/home.css')}}" rel="stylesheet" />
<script src="js/home.js"></script>
</head>
<body>
<div class="login-page">
<div class="form">
<form class="register-form">
<input type="text" placeholder="name"/>
<input type="password" placeholder="password"/>
<input type="text" placeholder="email address"/>
<button>create</button>
<p class="message">Already registered? <a href="#">Sign In</a></p>
</form>
<form class="login-form">
<input type="text" placeholder="username"/>
<input type="password" placeholder="password"/>
<button>login</button>
<p class="message">Not registered? <a href="#">Create an account</a></p>
</form>
</div>
</div>
</body>
</html>
home.js公共/ JS/home.js
正是在code.Here被missing.this是不prbolem.But不管怎麼說,還是要謝謝你。 –
更新了代碼。現在檢查。 –
不工作。代碼是好的,我認爲在codepen中,因爲io工作。但在laravel結構中是我想的問題。 –