Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to save html registration form data into json file then login based on it
Posted

Using JSON object, it is possible and the code sample is

C#
$('#Myform').attr('onsubmit', 'test()');

function test() {

  var obj = {};

  obj.title =$('#title').prop('value');
  console.log('title: '+obj.title);

  obj.userID =$('#userID').prop('value');
  console.log('userID: '+obj.website);

  obj.passCode =$('#passCode').prop('value').split(',');
  console.log('passCode: '+obj.tags);

  doSomething(JSON.stringify(obj));

}
 
Share this answer
 
Thanks sir, i will try it, and i will reply to you
thanks in advance
 
Share this answer
 

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