December 2013
Intermediate to advanced
384 pages
9h 54m
English
var inText = $("#inBox").val(); if (inText != "default"){ $("#outBox").val(inText); }
The most common type of form elements are textual inputs. These elements include the <textarea> element as well as <input> elements with the following type attribute values: color, date, datetime, datetime-local, email, month, number, password, range, search, tel, text, time, url, and week.
Although the browser uses these values a bit differently, all are rendered in the same basic text box and are accessed in the same basic way. Each of them has a value attribute that is displayed in the text box as the image is rendered.
In jQuery, you can access the value text inputs using the .val() ...
Read now
Unlock full access