alexmixaylov,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function () {
$("#ok").on("click", function () {
($inputVal = $.trim($("#zapros").val())) ? ($("input.element-tmpl-hidden").val($inputVal), alert("Не пустой")) : alert("Введите сначала поисковый запрос")
})
});
</script>
</head>
<body>
<div class="zpoisk">
<input id="zapros" type="text" class="element-itemname">
<input id="ok" type="button" name="send-clone" value="ОК" class="ok">
</div>
<input class="element-tmpl-hidden" value="">
<input class="element-tmpl-hidden" value="">
<input class="element-tmpl-hidden" value="">
<input class="element-tmpl-hidden" value="">
</body>
</html>