当前位置: 动力学知识库 > 问答 > 编程问答 >

jquery - Prompt a like input Javascript

问题描述:

Hello Im doing a little project and I would like to do a input commands that work something similar to prompt().

$('.form-me').on('submit', function(e){

e.preventDefault();

if($(input).val() === "comand") {

var value1 = prompt("insert something");

var value2 = prompt("insert something");

}

});

The thing is, that I don't want to use prompt() but I would like to have an information print out above input, and after inputting first value I will get an next print above input and input the second value. I've though about it for quite a while and can't find an solution to get some kind of step-by-step value inputing. Thanks for any kind of help.

分享给朋友:
您可能感兴趣的文章:
随机阅读: