Answer the question
In order to leave comments, you need to log in
How to display image + select box?
Hello. There is a text type field, I limited the input only to numbers, added a handler for it. But I need that when a certain number is entered into the text field, a certain image (test for the condition) + select box is displayed. So the question is: how can this be done and who can help with something? Js has recently started to study, but it needs to be done today. Therefore, who will tell you what and how?)
It should look something like this: s011.radikal.ru/i316/1510/6d/64a12ac2a48a.gif
Answer the question
In order to leave comments, you need to log in
here is a sketch in jquery, develop at your discretion
$(document).ready(function(){
$(input).keyup(function(){
if($(this).val()==1){
$('img.image1').fadeIn();
$('select.select1').fadeIn();
}
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question