Friday, July 6, 2012

Change anchor tag text with jquery

To change the text with jquery simply use this syntax

 $('document').ready(function () {
        $('.txtText').click(function () {
                     alert($(this).text() ); //this will dispaly current text

                     $(this).text('new text ');//this will set new text


         });
    });

No comments:

Post a Comment

can you please explain me Backpropagation & Gradients in layman language as simple as possible

 Absolutely! Let’s break down backpropagation and gradients in the simplest possible way , like we’re teaching a curious 10-year-old. 🎯...