Displaying 1 result from an estimated 1 matches for "damt".
Did you mean:
damn
2006 Apr 13
0
Custom validation of form fields?
...performed on a form field?
I have the following form (remote via ajax)
<%= form_remote_tag :url => {
:action => ''do_action'',
:id => @pid },
:before => ''Element.hide("action_div");'' %>
<%= text_field_tag "damt", "0", :size => ''5'' %>
<input type="submit" name="paction" value="Enter Data">
</form>
I would like to make sure the ''damt'' field is submitted with only
multiples of a pre-specified amount, say for...