Problem in getting right result for select box
问题 i am using Jquery as: $(document).ready(function(){ test("price"); alert("hi"); $("#item2").change(function() { sort= $("#item2").val(); test(sort); }); }); function test() is some javascript function, my problem is when page loads function calls by "price" parameter .Now when i select some item from select box function test() is called using sort parameter (verify by alert box). but i am not getting the correct result. i mean when i select option from select box than also my result of test()