$('query').val(a) - Method
dj(query).value(a); This Function will return the value of element. Syntax :-
And if You want to set value of any element then pass the value in parameter of the value()
Syntax :-
Parameters => 1
dj('#id input').val();
And if You want to set value of any element then pass the value in parameter of the value()
Syntax :-
dj('#id input').val('<h1> New value Here </h1>');
The value of the Selected Element will be Changed.
More About .value(a) Method.

Post a Comment