I have some code, like this:
  %div{:id=>"alerts_tab",:class=>"settings_tab"}
    %div{:class=>"main_block"}
      %div{:class=>"left_block"}
        %p Select 1
        = radio_button_tag 'gender', 'male', :id=>"daily_frequency"
        Daily
        = radio_button_tag 'gender', 'male', :id=>"weekly_frequency"
        Weekly
        = radio_button_tag 'gender', 'male', :id=>"monthly_frequency"
        Monthly
        %p Try it
        %input{:name => "malfunction_affects_more", :type => "checkbox", :class => "check_box", :value=>"off"}
        AAAAAAAAAAAAAAAAAAA
        %select{:class=>"custom_drop_down"}
          %option 1% users 'test'
I trying use JS for select data and move findings to ruby code. But I have some problems: 1. If I write JS code
:javascript
  $( "#save_settings" ).click(function() {
    var value = document.getElementById('daily_frequency');
    alert(value);
  });
It is not working, why?
- If I catch all data how to move findings to ruby code. I don't know.
 
Please, help me with this problems.
                        
Wrong syntax. Check this out
The 3rd parameter sets the
checkedattribute, so this should work:Side note for useful
hamlsyntax:can be written simply as