F
F
fenucss2015-10-02 21:10:26
JavaScript
fenucss, 2015-10-02 21:10:26

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

2 answer(s)
V
Vitaly Inchin ☢, 2015-10-03
@fenucss

••••Tyk••••

D
Dmitry Novikov, 2015-10-02
@dmitriy_novikov

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 question

Ask a Question

731 491 924 answers to any question