$('query').text(a) - Method
dj(query).text(a); This Function will return the innerText of element. Syntax :-
And if You want to set innerText of any element then pass the html in parameter of the html()
Syntax :-
Parameters => 1
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.

إرسال تعليق