Hi all,
I have a form for adding new entries in my “dev” model.
I need to check empty fields in that using javascript function. but in
my
form im having combo box and other fields in rails code.
my query is : does javascript function identify rails code and validate
the
fields like it does for html?
my code is given below… but it doesnt work… please help me with this:
view:
Add Device
<%= "Fields marked with * are required" %>
Device Info- Device Name : <%= text_field "dev", "name", :size => 20%> <%= "*" %>
- Lab : <%= collection_select(:labt, :id, @labts, :id, :name,:prompt=>"Select a Lab") %><%="*"%>
javascript function:
–
View this message in context:
http://www.nabble.com/Problem-with-javascript-validation-in-rails-tp18192684p18192684.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.