syntax - JQuery clearing an input text field -


I have a question about cleaning an input text field, when a different click-down click on the same page If done, then the input text field should be cleaned. Here is my jQuery Fiton warning message shown every time I select an option from the drop down but the field is not cleared. Any idea what the correct syntax should be:

  jQuery (document) .ready (function () {jQuery ("[id $ = 'serialNumForm: noSerialNumProductKey']"). ) {Warning ("jquery change ftn !!"); jQuery ("[id $ = 'serialNumForm: inputSN']"). Value = "";});});  

I have a form ID, so I need to include the ID id in the Element ID name. The warning shows that the exact value does not change.

You want to use:

<> jQuery ("[id $ = 'SerialNumForm: inputSN'] ") pre-val (" ") ;.

Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -