It works fine. I did programmatically in SPSevices
. It works fine. I did programatically in SPSevices
.
$(document).ready(function() {
var idquery="";
$().SPServices({
operation: "GetListItems",
async: false,
listName: "test",
CAMLQuery: idquery,
CAMLRowLimit: 1,
completefunc: function (xData, Status)
{
$(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title"));
var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
});
}
});
- Get value in variable
parseInt($(this).attr("ows_Title"))+1;
- Bind text box
TICKET Number
1. Get value in variable parseInt($(this).attr("ows_Title"))+1;
2. Bind text box TICKET Number
Click here more detailsClick here more details