Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
explain this jquery code please
Vikram
9y
414
1
Reply
please explain this code what is label:item.split and all
function (data)
{
if (data.d.length > 0)
{
response($.map(data.d, function (item)
{
return {
label: item.split('/')[0],
val: item.split('/')[1]
}
}));
}
else {
response([{ label: 'No Records Found', val: -1 }]);
$('#txtSearch').val('');
}
}
Thanks in advance
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Custom Http Module to add Twitter cards <meta> tags
need help regarding books