Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
span tag value
posted

Hi,

I am trying to change value of a <span> tag, through jquery and its not doing it for some reason. Below is the HTML code

<span id="lbltest">eee</span>

 Javascript code is

<script type="text/javascript">

    $(function () {

        $("#lbltest").text("abcd");

     });

</script>

I am expecting it should display abcd instead of eee.