jquery - validate dynamically created elements on select an option of combobox -
i using jquery validate() plugin .
hava combobox in form when user select option on new element create dynamically .
how validate new element according selected option of combobox .
in fact want first check value of combobox it's new elements created .
have solution ???
if create new element when user select option can validation right after that? (but shouldn't validate first , create new element?)
<div id="test"> <select id="combobox1"> <option value="1">value 1</option> <option value="2">value 2</option> <option value="3">value 3</option> <option value="4">value 4</option> </select> </div> $("#combobox1").change(function() { var text = $('<input type="text"></input>'); $('#test').append(text); text.validate(); });
or mean want same behaviour 2 comboboxes. e.g. user selects option in combobox1, create combobox2. user selects options , create combobox3?
(in short, can rephrase question?)
Comments
Post a Comment