jquery form change detection -


Any good script, please explain to me how to implement it with other types of tags such as radio and file uploads;

Dream Day

Try this code,

  & lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 Transitional //www.w3.org/TR/html4/loose.dtd"> & Lt; Html & gt; & Lt; Top & gt; & Lt; Script src = "../jquery-latest.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ (Document) .ready (function () {$ ("select"). Changes (function () {var str = ""; $ ("select option: selected") Each (function () {str + = $ (This) .text () + "";}); $ ("div"). Text (str);}) .change ();}); & Lt; / Script & gt; & Lt; Style & gt; Div {Color: Red; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Choose name = "sweet" multi = "multiple" & gt; & Lt; Options & gt; Chocolate & lt; / Options & gt; & Lt; Option selected = "selected" & gt; Candy & lt; / Options & gt; & Lt; Options & gt; Taffy & lt; / Options & gt; & Lt; Option selected = "selected" & gt; Carmel & lt; / Option & gt; & Lt; Options & gt; Fuzz & lt; / Options & gt; & Lt; Options & gt; Cookie & lt; / Options & gt; & Lt; / Select & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -