Change the attribute value using Jquery on page load

<script type=”text/javascript”>

$(document).ready(function () {

var id = ($(‘input[id$=”clip_copy_Text”]’).attr(‘id’));
var idLength = id.length;
if (idLength > 12) {
$(‘input[name$=”clip_copy_Text”]’).attr(‘name’, ‘clip_copy’);
}
});

</script>

TextBox render on page as input—-important

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply