Thursday, October 15, 2015

How to change text of label attribute(for) in jquery?

In this below script, change text of label attribute(for) in jquery

change text of label attribute(for) in jquery
Script:

<script type="text/javascript">
$(document).ready(function()
{
$("label[for*='test']").html("others");
});

</script>
Html
<label for="test_992918d5-a2f4-4962-b644-bd7294cbf2e6_FillInButton">others</label>

Before Coding

After Coding


No comments:

Post a Comment