I have a work from my time to use jQuery with SharePoint . I have written the code to get list items. When I run in IE it doesn't show any errors to me, but I am not getting the results. Can any one help me find a problem in the below code?
var i=BANKID;
$().SPServices({
operation:"GetListItems",
listName:"Test",
async:false,
CAMLViewFields: "<ViewFields>"+
"<FieldRef Name='ID'/>"+
"<FieldRef Name='A' />"+
"<ViewFields>",
CAMLQuery:"<Query><Where><And><Eq><FieldRef Name='ID'/><Value Type='Counter'>"+1+"</Value></Eq></And></Where></Query>",
completefunc:function(xData,status)
{
$(xData.responseXML).find("z:\\row").each(function()
{
var duid=$(this).attr("CustomerID");
var questionis=$(this).attr("BANKID");
$("#ctl00_m_g_d828bdd4_9329_4f8b_a18c_e9a26c43411a_ff5_1").val(duid);
$("#ctl00_m_g_d828bdd4_9329_4f8b_a18c_e9a26c43411a_ff1_1").val(questionis);
});
}
});