Click here to Skip to main content
15,904,652 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
JavaScript
createInputObject: function () {
        
        var inputData = {
            bc_id: combos.bcId,
            be_id: item.BeId,
            beCPId: item.BeCPId,
            BBPLC: item.IsBBPLC ? "Y" : "N",
            loc: "US",
            product: dfGlobals.selTaxonomyId == '' ? '0' : dfGlobals.selTaxonomyId,
            volSEF: $("#volSEF").jqxCheckBox('checked') ? "1" : "0",
            matSEF: $("#matSEF").jqxCheckBox('checked') ? "1" : "0",
            clrSEF: $("#cleared").jqxCheckBox('checked') ? "1" : "0",
            segIA: $("#segIA").jqxCheckBox('checked') ? "1" : "0",
            region: reg.id,
            
            }
        
        return inputData;


This is my js function to return the data. How to check the each and every value return by inputdata object. I mean I want the values like inputdata.VolSEF,and so on..
thanks in advance.
Posted
Updated 18-Jan-16 23:48pm
v2
Comments
Sri Nivas (Vasu) 19-Jan-16 5:58am    
What exactly you want? you want to debug the data or send it to server using some api method?
Telstra 19-Jan-16 6:17am    
yes.I wan to debug the data. Not sure how..

JavaScript
inputData.volSEF
 
Share this answer
 
You can use

JavaScript
console.log(createInputObject); 


before the return statement to preview the data

return inputData;



and then if you open developer tools then you can you the object details.
 
Share this answer
 
v2

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