@wesleycjx

I guess the event is called on "keypress" event.


i have a similar sort of problem like  deafGuru

my script is->

        $(".stock_item").live("keypress",function(){
                console.log($(this));
                $(this)
                        
.autocomplete("includes/pages/stock_item_autocomplete.php",{
                                width:150,
                                max:5,
                                multiple: true,
                }).result(function(){

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

                        if(name.match("#")){
                                var stock_id= parseInt( name.split("#")[0]);

                                $(this).val(name.split("#")[1]);

                                
$(this).next("input[name=stock_item[]]").val(stock_id);
                        }
                });

        });

this script gets the 1#Nokia1166 and stores the 1 into the hidden
field but
my problem is it does not trigger even on the first time and some time
not at all

help needed ....please

Reply via email to