jquery mailIt Plugin Examples
- Basic use
- Custom parameters
Basic use
Example
anEmailAddress[at]domain.com
anotherEmailAddress[at]domain[dot]com
yetAnother-REMOVE-THIS-EmailAddress[at]domain[dot]com
html
<span class="email1">anEmailAddress[at]domain.com</span>
<span class="email1">anotherEmailAddress[at]domain[dot]com</span>
<span class="email1">yetAnother<del>-REMOVE-THIS-</del>EmailAddress[at]domain[dot]com</span>
javascript
<script src="http://code.jquery.com/jquery-2.0.1.min.js"></script>
<script src="src/jquery.mailIt.min.js"></script>
<script>
$(function () {
$('.email1').mailIt();
});
</script>
Top of page
Custom parameters
Example
anEmailAddress-at-domain.com
anotherEmailAddress-at-domain-dot-com
yetAnother-SPAM FILTER-EmailAddress-at-domain-dot-com
html
<span class="email2">anEmailAddress-at-domain.com</span>
<span class="email2">anotherEmailAddress-at-domain-dot-com</span>
<span class="email2">yetAnother<del>-SPAM FILTER-</del>EmailAddress-at-domain-dot-com</span>
javascript
<script src="http://code.jquery.com/jquery-2.0.1.min.js"></script>
<script src="src/jquery.mailIt.min.js"></script>
<script>
$(function () {
$('.email2').mailIt({dummy:'-SPAM FILTER-',at:'-at-',dot:'-dot-'});
});
</script>
Top of page