私はASP.NETプロジェクトで作業していて、インフィールドラベル用のjQueryスクリプトを使用しようとしましたが、内部の代わりにテキストボックスの上にラベルを表示しています。私はここに来ました。私のコードは以下の通りです。ありがとうございました!ありがとうございました! 、http://fuelyourcoding.com/scripts/infield/jQuery infield labelsプラグインがASP.NETプロジェクトと連携していません
@{
ViewBag.Title = "LostPassword";
}
@using (Html.BeginForm("LostPassword", "Account"))
{
<script type="text/javascript" src="../../Scripts/jquery.infieldlabel.min.js" ></script>
<script type="text/javascript">
$(document).ready(function() {
$("label").inFieldLabels();
});
</script>
<fieldset>
<table class="layout full-width key-value">
<tr>
<td>
<h2>Forgot your password?</h2>
<br />
<p><b>To reset your account password:</b></p>
<p><b>1.</b> Please enter your username in the below box and click "Reset". Your username could be your E-mail address, or it may be a username you created when you set up your account.</p>
<p><b>2.</b> You will recieve an E-Mail with a link to reset your password. Follow the link and the instructions on that page to update your password.</p>
</td>
</tr>
<tr>
<td style="position: relative">
<label for="UserName" style="position:absolute; top:0; left:0">User Name</label>
@Html.TextBox("UserName")
</td>
</tr>
</table>
<input type="submit" value="Reset my password" />
</fieldset>
}
問題を示すフィーリングを投稿できますか? –
申し訳ありませんが、フィドルですか? – Blake