Get Defined Attribute Value Using Jquery

Get user defined attribute value using jquery like name, id and other attributes

<input type="text" value="XYZ" name="Name" id="Name"  
    myAttribute="This is Name Of Employee" />

<script type="text/javascript">
 $(document).ready(function(e) {
        console.log($("#Name").attr('myAttribute'));
    });
</script>

Comments

Popular posts from this blog

Login with facebook using coldfusion

Create CSV file in Coldfusion Using CFFile

Get Previous One Day Data in Sql Server