TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hazel Mahmud
1.4k
315
70.1k
.click function didn't work
Apr 8 2015 3:03 AM
hello,
can anybody help to solve this.. i have jquery coding below but when i run it, search inside .click function didn't work. how to fix that problem..thanks so much. jquery coding as below :
function SearchID() {
$(".autosuggestID").autocomplete({
source: function (request, response) {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "AutoComplete.asmx/GetStaffID",
// data: "{'id':'" + document.getElementById('txtSearchID').value + "'}",
data: "{'id':'" + document.getElementById('<%=txtSearchID.ClientID%>').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");
}
});
},
minLength: 0,
scroll: true,
select: function (event, ui) {
$('#<%= lblstafID.ClientID%>').text(ui.item.val);
var txtstafIDs = document.getElementById("<%=lblstafID.ClientID %>").innerHTML
document.getElementById("<%=txtstafID.ClientID %>").value = txtstafIDs;
}
})
.
click(function(){
$(this).data("autocomplete").search($(this).val());
});
}
Reply
Answers (
1
)
prevent duplicate row adding in gridview
Interview Questions for Freshers