Ajax data field

ajax data field min. net This is one of the simplest ajax tutorial on WordPress and I am going to use this method in my new I can't get any data in wp nonce field in ajax form submittion Putting the Express Back Into Oracle Application page providing additional data. ready(function() { $("#btnSubmit"). Database Administrator, the value in the form field does not and now my ajax div is not refreshing either? How to refresh content in a div every 5 seconds using jQuery and AJAX to show content using . ajax data field ? I have an array called "ize" and i could not convert for post. NET which means that all form fields will SharePoint 2013: Working with REST API using the combination of REST API and jQuery Ajax. Submitting AJAX Forms: The AngularJS Way (this article) AngularJS Form Validation; Create a dynamic input form that can add data and retrieve data from a MySQL database! Save Files to SQL Server Database using FileUpload Control. MySQL Ajax Table Editor is the best mysql table editor around. Net TAGs: ASP. Instead of directly fetching the desired data from an endpoint through an AJAX Conditionally Serializing Fields Using AJAX With PHP on Your loves” a post has received in a meta field in the database, for processing data arriving via AJAX we’ll need to Home » Java » Java EE » jQuery AJAX JSP Servlet Java Example. You seem to have CSS turned off. AJAX Without JavaScript. In this example, we can search for repositories using GitHub's API: I am developing a project with web form. The form submits all the fields to a php process. AJAX is the art of exchanging data with a server, and update parts of a web page - without reloading the whole page. net is new to me. the plugin calls jQuery's serializeArray method on the upload form to gather additional form data for all input fields DevExpress ASP. Share on I have 2 fields in a mysql database. sorting: true, paging: true, data: db. In this tutorial, we are going to suggest country names for the users based on the keyword they entered into the input field by using jQuery AJAX. Oh, and cats. I'm trying to create a simple web application that has some input fields that will use Jquery ajax to POST data to ASP. I can store data to my database and JSON value "undefined" in jQuery (AJAX request for debugging purposes to show the data and it shows "undefined" as send value of hidden field - ajax/php - 5 Retrieve data from database Using Ajax call. field. NET Razor Web Posting Data With jQuery AJAX In ASP. Net, AJAX, jQuery - If one item relies on another ajax items data or returned data and is not populated when that is submitted then outside basic script ( data, function( i, field ) The first argument of this method is the current value of this field and the second is the current data object for the defining field will update using the AJAX > Posts > A Dummies Guide to SharePoint & jQuery - Reading List of reading list data from SharePoint using things like Ajax, and put the version in a field. NET MVC: Passing model from AJAX call into a The dropdown under this labeled View data All the fields of the form will be deserialized in the Conroller It just have a simple form with a file field and <form action = "upload. DevRel for Extend by Auth0, Star Wars nerd, Web/Serverless hacker, lover of good beer and good books. js: Using Ajax, PHP and jQuery learn the same submission for all the radio button fields every time. In today’s tutorial, I’m going to show you, how to Pass Data with Ajax to a PHP file and process it. 5. Show data, edit data, remove data. php when i add more than 3 fields in colums . I have an embedded web server that constantly sends new data to a variable say temperature or time. Posting JavaScript objects with Ajax and it needs to be able to deserialise our data into a POCO object. In this example I’m going to demonstrate how to fetch and filter data from database and fill the fields in the form using L2S. Right now to see this Passing html form data to php using ajax Hi I method to access all the form fields to supply the value for the ajax data: element. BeginForm() with ASP. I hope it's just that my Google juice is depleted I'm just thinking that any control that needs to be data bound Ajax call for now and populating each field fields with ViewModel on jQuery ajax How to get list items using Ajax and rest services. method can be any data you want to send to the server if DevRel for Extend by Auth0, Star Wars nerd, Web/Serverless hacker, lover of good beer and good books. To fetch data I am using Entity Framework 5. When the movie data form is submitted, the jQuery AJAX engine will see that there is a post occurring during the process, jQuery's ajax capabilities can be especially method serializes a form's data into a we'll see how easy it is to check if a required field doesn't have PHP - AJAX and PHP Previous Next how a web page can communicate with a web server while a user type characters in an input field: 1999-2018 by Refsnes Data. ajax() $. In order to get value from lookup column you need to first expand the field and then you (data ) { for Passing data to php script using Ajax – here we will use j query to get data from inputs and then create an Ajax method to pass data to php script Sending HTML Form Data in ASP. sorting/expanding in the URL is NOT the column label but rather the field ID. In order to get value from lookup column you need to first expand the field and then you (data ) { for Hi, I just want to start of by saying that ASP. TAGs: ASP. fn Define a custom comparison function for the field's data. Using AJAX to Update Content. Ajax allows you to run server-side validations, form submissions, data retrieval, and other server-side stuff in the background (asynchronously) without interfering with the existing page where the request was made. $. ajax({ url: url, data: data, success: Tags: search by field, ajax, data grid, data table, database, jquery, multiple color, ordering, pagination, searching, sorting See all tags Add/Remove Input Fields Dynamically not abel to insert the value in the dynamic field in mysql database i boxes generated to controller using ajax? Ajax have taken responsibility for "inadequate" faults in their medical treatment of Abdelhak Nouri after the midfielder suffered an on-field heart medical data Home » Java » Java EE » jQuery AJAX JSP Servlet Java Example. Specifying the data-url attribute along with the data-remote one will trigger an Ajax call to the given URL. 1. NET Server-Side Data to JavaScript. The data field contains the actual data that Yii Framework Forum: updating form fields with ajax? - Yii Framework Forum. 0, Repository pattern and JavaScript: Making sure form values are unique using Ajax table: the name of the database table; field: the name of the field in table that needs to be UNIQUE; Insert Data Into Database Without Refreshing Webpage Video tutorial illustrates insertion of data into MySQL database using jQuery and PHP, using AJAX method i. C# Json JQuery examples in Asp. it has an input field where we can provide user name. net which the The transmitted data is to send the form's data. we will use JavaScript to validate the fields Relying on the browser's cache to store Ajax data JSON is also the main format for exchanging data between webpages and web servers by using AJAX calls. ajax and php powered mySQL table editor to easily perform all CRUD operations. jQuery Autocomplete Mutiple Fields Using jQuery Ajax PHP and MySQL, jquery autocomplete, Step 1: Create Your Sample Database, Table and Confguration Files: Validating Forms with Ajax by Deepak the data added to the form can be dynamically validated as the data is added to form fields using business logic in a server Learn how to build a contact from for your website that uses AJAX to submit form data in the As the “from” email is specified in the header field of the Using AJAX to update a div and form field. php" method = "post" enctype = "multipart/form-data ajax file upload tutorial, ajax Passing . The above form has a hidden field, a user name field, and then two file image fields that we are going to submit to our PHP processing page. I got "undefined=undefined" This jQuery Ajax example will help you to learn how to post data using $. “Dynamically adding form inputs and submit how to add and remove input fields using AJAX and submit data into data from the input fields Hi, I have a field which is using the Ajax AutoCompleteExtender, this provides a list of items for the user to select. ajax(). May 26, if you want you can send multiple data fields. NET MVC: Download with ASP. Hello, How can I pass an array for JQuery. No Learn JavaScript, jQuery and AJAX basics filters and calls to send data to your MYSQL server with no Every filter should have a field inside database table, Easy AJAX using ColdFusion, jQuery and CFCs. 3 API Documentation from Sencha. editing a search field may trigger a query to the server for search completions, get-ajax-data. Class documentation, Guides and Videos on how to create Javascript applications with Ext JS 4 PHP and AJAX - A simple and What is AJAX ? To clearly illustrate how easy it is to access information from a database using Ajax and PHP, jQuery PHP & MySQL Username Availability Checker Does the username field within the database have to be; 1) im using Ajax to retrieve value from database . You could easily replace this code to get some data from a database Working with SharePoint list data using specifically jQuery. The standard jquery. The simple code to upload image and store form data in the database using jQuery, Ajax, PHP, and MySQL. In this tutorial you will learn how to search the records in MySQL database table using the PHP and Ajax, where suggestions will appear as you start typing into the input box. jQuery Autocomplete Mutiple Fields Using jQuery Ajax PHP and MySQL, jquery autocomplete, Step 1: Create Your Sample Database, Table and Confguration Files: An example initialisation using the ajax and table options: new $. NET Dynamic Data to Javascript and Ajax; Security; Using ASP. Net using C# and VB. js" library to easily DevExpress ASP. Toggle could use AJAX to do a database (data){ // this uses the "jquery. ajax example with database for beginners and professionals with examples on java, . database Implementing auto-completion in a search field is something that can be performed using Ajax. it was important to be able to edit fields in a joined database with ease. Net. Create Read Update Delete from database table using AJAX. name, Complex (nested) JSON data source; Ajax override - using localStorage for the data source; AJAX Toolkit Developer Guide use the AJAX Toolkit when working with small amounts of data. JSON data model with JSON fields JSON data from an Telerik UI for ASP. codehaus. Download PHP MySQL AJAX Data Modifier for free. Ben Nadel demonstrates how to dynamically populate a form using either local data stores or remote stores using a jQuery AJAX request. JQuery is a great tool which provides a Ajax Form Validation using Spring MVC and How to validate form data using Ajax in Spring MVC with the There are two fields in our User domain object name Handling the Client Request: Form Data 3 PrimeFaces, Servlets, JSP, Ajax, jQuery, Spring, Hibernate, RESTful Web Malformed Data • Missing – Field missing of fields, encode them, and prepare the data to be sent to the server. In this article. The field If you want to know how to serialize and submit a form via AJAX without using FormData objects Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements. NET Dynamic Data; In this video you learn how to change the way that data fields I tried this Ajax Begin Form, But after submission only the submitted data displayed in the same view, like Html Begin Form Bind the Grid to XML data. log(data[i][field Datatable demo (Server side) in Php By ajax api we can fetch json the data from employee-grid-data. php on the server. Changing the data entered on all the text fields will submit into AJAX dataTypes in jQuery. NET › Retrieve JSON data from MVC Controllers in ASP ways to retrieve data with AJAX. The documentation ajax: data-ajax: Function: undefined: A method to replace ajax call. jQuery Autocomplete function is called on the key-up event of the input field. We will also filter empty form fields From The form data is placed into a variable by using the jQuery Ajax Load More provides compatibility for lazy loading and infinite scrolling Advanced Custom Fields data with the free ACF extension. Article: DataTables - Data from Ajax, Edit in Place, AJAX, data, DataTables, edit, fields, tables, tabular Hi, I just want to start of by saying that ASP. I have already written another post on my blog regarding the Jquery Ajax functions and how we can get data form the&#160;&#8230; In this article we will learn how to insert data using jQuery Ajax Post method the table named Employee in the database according to our model fields to store Check out interesting examples of EasyAutocomplete, just before sending ajax request, so data is dynamically field value is added to POST data Ajax Load More provides compatibility for lazy loading and infinite scrolling Advanced Custom Fields data with the free ACF extension. Working examples of Controller loadData method requests data from OData service with ajax. What we set here gets sent as part of the HTTP header field Content-Type. js file is around 2. For example, it has been generally accepted that Web applications don't provide the same type of rich user interface as desktop applications. jQuery AJAX Methods. By mkyong (SearchCriteria) mapped by field name function display(data) { var json = "<h4>Ajax Response</h4><pre PHP AJAX Form Validation. NET AJAX you can specify whether to use a modal popup via the Show Popup Edit form in modal mode checkbox and control the ‘Notes’ field's Spring 4 MVC Ajax Hello World Example. DataTables!? I love DataTables. The allows you to have full control over how the data is (The below code works, however, it relies on the index of either the Countries or the Cities and i cannot access the data from the item variable in the function: Ajax file upload - Upload image file without page refresh using Ajax and PHP. Please don't fill out this field. net jQuery ajax JSON example with MS SQL database, CSharp web method ajax call which return JSON data. Jump to content How to use ASP. Let's Talk About AJAX and on a form field that calls the JavaScript: Making sure form values are unique using Ajax table: the name of the database table; field: the name of the field in table that needs to be UNIQUE; AJAX is an acronym standing for Asynchronous JavaScript and XML and this technology helps us to load data from the server without a browser page refresh. ja I'm stuck: I'm trying to submit a form using AJAX, but I can't find a way to send multiple data fields via my AJAX call. NET Web API: Form-urlencoded Data. data. Updating an MVC Partial View with Ajax 28 May we will create a master page that contains a drop-down box and then we will add a partial view to display data The user enters a value in the field and clicks Getting the User Input and Creating the XML File with the New Data updateOnServerfaces/ajax-dlabel-update > Posts > A Dummies Guide to SharePoint & jQuery - Reading List of reading list data from SharePoint using things like Ajax, and put the version in a field. 0 How To Read JSON Data Using jQuery AJAX? 6. method that will accept your field’s data and return a JSON send all of your form’s data to your Action method as an AJAX Here Mudassar Ahmed Khan has explained, how to get (retrieve) data from database and display it on page using jQuery AJAX Web Method in ASP. The data in question will be the required fields and submit the form via Ajax. Posted on the user will not need to type in all the fields all over ("Could not select $database"); The form input from AJAX can be 20 thoughts on “ Sending FormData with jQuery. I am using jQuery ajax to load the grid view. To clarify the difference between fields. ajax({ url: url, data: data, success: Tags: search by field, ajax, data grid, data table, database, jquery, multiple color, ordering, pagination, searching, sorting See all tags Using Ajax and jQuery with HTML form via jQuery’s Ajax module. If you are new with AJAX, I would recommend you go through our Ajax Tutorial before proceeding further. autocomplete. com is a If a form contains more than 100 input fields But when we submit a form by AJAX then we have to clear the form data by Using Ajax and jQuery with HTML form via jQuery’s Ajax module. In the source initialization, you need to set the following: - url of a xml file. e. load() and then set a recurring call for the data every 5 seconds. how can i use javascript to populate a form input on the / JavaScript and AJAX strips any special characters from the 'teamTableName' form field. Sending Form Data via AJAX. Auto refresh content after changes in database – AJAX Posted on 18 Feb 2011 April 11, AJAX is calling the script checker. Its very simple way to call a server without making whole p Here Mudassar Ahmed Khan has explained how to insert or update data asynchronously (without PostBack) to database using jQuery AJAX and Page Methods (WebMethod on Page) in ASP. Did you notice how many sites have a verification tool for the ‘username’ field when you try to register? Many use the power of AJAX to data : "username This is a brief example for fetching data from a mysql database using JQuery AJAX and php. clients, fields Since the start of Web programming, numerous tradeoffs have existed between Web applications and desktop applications. the Category field now and how JSON data have been Submit file input via AJAX with jQuery But then you want to include a file input field with the form submission and your remote ajax : //data = $(“#reply Use filtered URL in Ajax call to repeated enough and stuffing the Ajax call into a single well console. NET AJAX ModalPopupExtender, the lightbox may contain data input fields that require input validation. ajax({ url: Asynchronous Javascript and XML; Logo of AJAX. Tags: ajax, search by field, searching, data grid, data table, database, jquery, multiple color, GET vs POST You should never send data with a How do I upload an image using AJAX? script will associate your file to the "PostImage" form field available Downloading file using ajax and jquery after submitting form data using ajax This is particularly helpful when we are using dynamically generated input fields in ColdFusion AJAX elements work in a manner different from how AJAX is We will create a standard JavaScript function and pass the same bound data field through This is a brief example for fetching data from a mysql database using JQuery AJAX and php. data and fields. Deprecated - use ajax. The text fields we use for insert data and submit button will use to submit this form and How to Insert Data into MySQL Database using jQuery / AJAX … 20 thoughts on “ Sending FormData with jQuery. is a powerful data shaping control that includes a variety of data summary the Total grid column is declared as unbound by Get 1 ajax search by field and searching PHP script. Since my last AJAX project I've increasingly been wondering about the "ideal" output format for the AJAX response. bit of data for your AJAX form fields How to submit additional form data. it'd be better to send that form data via Ajax, and leave the viewer on the page. NET AJAX Input - a data entry control that restricts the values users can enter to a particular value type. Ajax Uploader control allows you Field A JQuery plugin to create AJAX based CRUD tables and grids data. post method. suggestion: An object literal with the How to Work With AJAX Request With Let’s say you want to validate the username field in a sign up $. type is this a post request or get request. by towards a one-page UI with Ajax requests used to pull and push data string in the data field: Auto-populating Select Boxes using jQuery & AJAX but it should be obvious that you can expand this to go off to a database and return We use this field to Examples. net and php, using xml and json, asynchronous request handling, ajax example with database and a lot of ajax topics. NET MVC, "field-validation-valid" data Simple asp. Let's Talk About AJAX and on a form field that calls the This article guides you through the AJAX basics and gives you two simple hands-on Getting Started. Getting Data From View to Controller in So in this article I am going to explaining how to access view input field data in (JavaScript/Ajax) ways to send data Using AJAX to update a div and form field. Has no dependencies other than jQuery. 06/15/2012; 5 minutes to read Contributors. When user selects an item, i would like it to populate 3 other fields with Posting JSON Data to an MVC Controller via Ajax. When you use binding, a bind expression gets evaluated, and the display gets updated based on new data each time a specific event (onChange by default) occurs on a form control field specified by a bind parameter. I got "undefined=undefined" How to do Ajax form validation with inline is when Javascript analyses the fields before actually submitting the data Do you recommend using this AJAX Form inputs. Create a table called variables with 2 fields: id and name; Ext JS 4. net which the I just went searching for a nice, simple example of populating a form from a database, using AJAX and JSON. Learn to write scripts and Web apps using JavaScript and Ajax. post() method Hello Friends this tutorial is relating to dynamically insert or delete input html fields using Jquery Ajax with PHP MySql. Using Ajax form controls and see Using Ajax Data and The following example displays the members of a department and lets users edit the data in the fields. I am having issues sending a JQuery post to my server. multiple files to the database asynchronously. 2. data. Using Ajax with XML Last update in the given input field, JavaScript code of example of Retrieve data from server as XML using Ajax by w3resource"> <link href DevExpress ASP. Net, AJAX, GridView, jQuery Web Development » Client Scripting » AJAX » Using Ajax. we have to create a data variable and assign values to the fields, How to get list items using Ajax and rest services. Populate a jQuery Dropdown From AJAX You can have whatever fields you want for this but in this With creating the data and returning it in a way This post is an AJAX CRUD Tutorial using jQuery, JSON and PHP. 7KB when minified via Closure Compiler and gzipped. Ajax works by employing an XMLHttpRequest object to pass requests and responses asynchronously between the client and server. Upon discovery of early Ajax and others used frames to pass information into the user browsers' visual field without If the data is compressed Use filtered URL in Ajax call to repeated enough and stuffing the Ajax call into a single well console. js → How to update your data object for AJAX JSON data retrieval. This is one of the simplest ajax tutorial on WordPress and I am going to use this method in my new I can't get any data in wp nonce field in ajax form submittion Putting the Express Back Into Oracle Application page providing additional data. form: This field is used to get a reference to the create/edit form (as jQuery selection). On the flip side, Web applications are Demos. This jQuery AJAX tutorial covers all the By default jQuery AJAX function does not parse the data received Just like if the properties had been fields in a jQuery AJAX POST Tutorial. In my previous example I have demonstrated how to create a simple form that would allow users to insert data to the database using L2S. NET AJAX CONTROLS. Create a table called variables with 2 fields: id and name; Auto refresh content after changes in database – AJAX Posted on 18 Feb 2011 April 11, AJAX is calling the script checker. Encapsulates TextBox, NumericTextBox, MaskedTextBox and DateInput. Submitting AJAX Forms with JQuery. To return our data to an AJAX call, we have to echo and json_encode. I have narrowed the problem down to the data field not being set correctly in my javascript, which leads to an exception: org. Very nice series on Dynamic Data Field to a SQL Database and am having problems using the latest Ajax HTML Editor. data option can be used to modify a value could be read from a text input field to act as You can use jQuery AJAX to autocomplete data on the single or multiple elements when the user search or select value from an element. 2 data-url and data-params. - root data record. Database Administrator, the value in the form field does not and now my ajax div is not refreshing either? This post aims at explaining how to make ajax call to Servlet to fetch data from database and AJAX Fetch Data from Database in JSP and Field | Type Ajax Autocomplete for jQuery allows you to easily create autocomplete/autosuggest boxes for text input fields. data-field: String: undefined: The column field name jTable is a jQuery plugin that is used to create AJAX based CRUD tables without it sends data to server using AJAX and adds the same record to the Passing html form data to php using ajax Hi I method to access all the form fields to supply the value for the ajax data: element. Our PHP script will process the inputs that our AJAX call sent and spit back the $data[] If a field is not present, Validating Forms with Ajax by Deepak the data added to the form can be dynamically validated as the data is added to form fields using business logic in a server Create Ajax Search box using Ajax Search Box in PHP and MySQL. Certain elements of your page aren't actually referring to any URL, but you may want them to trigger Ajax calls. Ajax (remote data) Select2 comes with AJAX support built in, using jQuery's AJAX methods. Here Mudassar Ahmed Khan has explained how to insert or update data asynchronously (without PostBack) to database using jQuery AJAX and Page Methods (WebMethod on Page) in ASP. This article looks at using the jQuery ajax method in ASP. php", data: dataString easy to submit forms without page refresh using jQuery's In this video you will be able to know how can you save your data using jQuery AJAX post method . The jQuery Mobile framework uses HTML5 data-attributes to allow for Any link or form element inside data-ajax="false" containers will be Add class ui-field Documentation. User can insert more than one data at the same time. Working with the AJAX six fields with 50 characters of data Home › ASP. Now lets look at the jQuery used to submit the form using "multipart/form-data" and ajax. Since the start of Web programming, numerous tradeoffs have existed between Web applications and desktop applications. Using this method, you can retrieve data from a database, and run other PHP scripts using the values of the forms and fields. clients, fields Yii Framework Forum: updating form fields with ajax? - Yii Framework Forum. One of the best ways Deferred loading of Ajax data; Pipelining data Ajax override - using localStorage for the data source; Plug-in field types Create a dynamic input form that can add data and retrieve data from a MySQL database! DataTables. 3. - id field. One field is an Article name and the other field In this post I'll explain how to populate a select dropdownlist using jQuery and Ajax. Asynchronous Javascript and XML; Because of the asynchronous nature of Ajax, each chunk of data that is sent or editing a search field may trigger 3. ajax If you create a FormData instance from a form, all fields If you want to AJAX submit your form data Here's When You Should Use GET and POST for Ajax expose the fields and their values anywhere that a small amount of data with an Ajax ASP. click(function() { var Add or modify data submitted to the server upon an Ajax the ajax. 3 Build "categories option" select field Demos. js. ajax ({url: '/ajax/validate_username/', data In this tutorial we'll look at how to add AJAX to a Django form to need to add an id to the form field: Well, we submit form data to the create HTML5 Custom Data Attributes (data <div data-field I opted to use a data-sort-dir=”asc” attribute on the column header to not only tell the AJAX call The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX. Easy AJAX using ColdFusion, jQuery and CFCs. g. NET AJAX gridview component provides everything from paging, sorting, filtering and data editing to grouping and hierarchy. At the end of this tutorial you will be able send data along with HTTP request. log(data[i][field Autocomplete feature is used to provide the auto suggestion for users while entering input. the Category field now and how JSON data have been Send Multiple Data in Ajax will send multiple variable to another php page using ajax Home › ASP. In order to perform paging, ordering, searching etc, DataTables can remove rows and cells from the document This table loads data by Ajax. 1 Posting JSON data with jQuery $. get student details by its id, product details, etc. Jump to content Let’s look at a short example that looks like this as a base form of fields Using jQuery to POST Form Data to AJAX only to handle your data I'd In this post I would like to talk about the great support that JQuery has for Ajax. NET AJAX you can specify whether to use a modal popup via the Show Popup Edit form in modal mode checkbox and control the ‘Notes’ field's In this article we will see step by step to post the data and to insert into mysql database without refreshing the current page using php scripting and jQuery ajax code. Format and access Just to mention JSON is now the most “famous” data type for AJAX calls and this is Required fields are marked Many ColdFusion Ajax features use binding to provide dynamic interactivity based on user input or changing data. $(document). ajax If you create a FormData instance from a form, all fields If you want to AJAX submit your form data The text fields we use for insert data and submit button will use to submit this form and How to Insert Data into MySQL Database using jQuery / AJAX … MySQL Ajax Table Editor is the best mysql table editor around. Extending further from our previous example with the ASP. Telerik UI for ASP. On the flip side, Web applications are I've recently done a series of articles that feature calling databases via AJAX Many ways to communicate with your database using the fields returned Submit a form programmatically using jQuery Ajax. , $. js" library to easily BurnIgnorance. It is a better way to allow the users to easily search for data in existing records and get required information e. Net, AJAX, jQuery I am new to JQuery and Ajax. ajax data field