Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have jquery which process or worked when we select item after it search item.
JavaScript
function SearchText() {
$("#txtsearchcourse").autocomplete({
    source: function (request, response) {
        $.ajax({
            type: "POST",
            contentType: "application/json; charset=utf-8",
            url: '<%=CallingPage %>' + ".aspx/GetAutoCompleteData",
            data: "{'strSearchString':'" + document.getElementById('txtsearchcourse').value + "'}",
            dataType: "json",

            success: function (data) {
                response($.map(data.d, function (item) {
                    return {
                        label: item.split('##')[0],
                        val: item.split('##')[1]
                    }
                }));
            },
            error: function (result) {
                alert("Error");
            }
        });
    },
    select: function (event, ui) {
        document.getElementById('hdnSelectedCourseId').value = ui.item.val;
        document.getElementById('txtsearchcourse').value = ui.item.label;
        document.getElementById('lnkSearchCourse').click();
    }
});

but its not working in safari browser its not getting click & process item. what is problem ???
Posted
v2
Comments
manak chand 20-Feb-15 8:36am    
What error you are getting...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900