我想在文本框静态中的@后自动填写电子邮件地址。
HTML:
<div class="col-md-1 col-sm-1 col-xs-6 ">
<label>Email</label>
</div>
<div class="col-md-3 col-sm-3 col-xs-12" style="margin-bottom: 5px;">
<input type="email" placeholder="Email" id="Email" class="form-control" />
</div>
使用Javascript:
$(function () {
var a1 = [
"precisetech.com.pk"
];
$("#Email").autocomplete({
source: a1
});
});