dj(query).text(a) - Method



$('query').text(a) - Method









dj(query).text(a); This Function will return the innerText of element. 
 Syntax :-

        dj('#id').text();
        


And if You want to set innerText of any element then pass the html in parameter of the html()
 Syntax :-

        dj('#id').text('<h1> New Text Here </h1>');
        
The HTML of the Selected Element will be Changed.
More About .text(a) Method.

    Parameters => 1

Post a Comment

Post a Comment (0)

Previous Post Next Post