There is 2 input type="text". First, user input 1st input text area with id="ncr\_no". Then, cursor is in 2nd input type "text" with id="itm\_cd". Now, I want to make, how the two input by user, when cursor is in 2nd input type, posted to other php (get\_ncrnoitmcd.php) by javascript? That's the code.

```
<script type="text/javascript">
    $(document).ready(function() {
        $("#itm_cd").keyup(function (e) {
            $(this).val($(this).val().replace(/\s/g, ''));

            var itm_cd = $(this).val();

            if(itm_cd.length < 1){$("#user-result3").html('');return;}

            if(itm_cd.length >= 1 ){
                $("#user-result3").html('<img src="image/ajax-loader.gif" />');
                $.post('get_ncrnoitmcd.php', {'itm_cd':itm_cd},  function(data) {
                  $("#user-result3").html(data);
                });
            }
        }); 
    });
</script>

```

Thank a lot.