Answer the question
In order to leave comments, you need to log in
How to correctly handle the change() event?
Tell me, I want to make an input in which you can enter values for the text size font-size and which will automatically set such a css text property
on the input when changing the field, hung this event onchange = "func (this. value);
and the function is this
function func (newfsize)
{
$("p").css("font-size", function(newfsize){
return newfsize;
});
}
This function for all paragraphs, which value I did not enter, sets font-size 3px; Tell me how it is implement more correctly, no matter how jquery or js.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question