Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. With Twitter Bootstrap toggle radio buttons, what's the clean way to get form input?
  2. $(this).children('input[name="is_private"]').val()
  3.        
  4. <input type="hidden" name="status" id="status" value="" />
  5.        
  6. $('div.btn-group button').click(function(){
  7.  
  8.     $("#status").attr('value', $(this).attr('id'));
  9.  
  10. })​