Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery("input[name=driverName]").keyup(function(){
- var that = jQuery(this);
- var data = {
- validate: {
- driver: {
- driverName: that.attr('value')
- }
- }
- };
- jQuery.ajax({
- url: 'incident/validation',
- dataType: 'json',
- data: data,
- success: function(aa) {
- alert(aa);
- }
- });
- })
- Is that the correct way to create a JSON object.. because on the server side.. I cant read deeper than driver
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement