Advertisement
Guest User

Untitled

a guest
May 6th, 2016
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var flexText = "not set yet";
  2.  
  3. $('input:checkbox[name="flex"]').change(function (e) {
  4. if ($("#flexible").prop('checked') == true) {
  5. flexText = 'true';
  6. } else {
  7. flexText = 'false';
  8. }
  9. test();
  10. });
  11. var test = function(){
  12. console.log(flexText);
  13. };
  14. console.log(flexText);
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement