Answer the question
In order to leave comments, you need to log in
How to move input without losing focus from it?
Hello! Please help me find a solution.
I have a page that has an input field . The task is this: when the user starts typing something in the input field, it moves to another place on the page (in this case, to a table cell). This is done with the following script:
$(document).ready(function () {
$(".search_box").bind("keyup input", function () {
$('.td').append( $('.center>.search') );
$('.search_box').focus();
$(".center").remove();
$(".content").css("display", "block");
});
});
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