HTML5’s Data Attributes With jQuery

        <title>Using HTML5's Data Attributes With jQuery</title>
        <script type="text/javascript" src=""></script>
        <script type="text/javascript">
            $(document).ready(function () {
                var val = $("#custom").data("emailid");
                if (val) {
        <div align="center" style="margin-top:100px;">
                <h1>Using HTML5's Data Attributes With jQuery</h1>
                <input type="text" name="username" data-address="ahmedabad" data-name="Milap"
                data-emailid="" id="custom" />
                <span id="msg"></span>


One thought on “HTML5’s Data Attributes With jQuery

I like to hear from you about this !!

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.