Difference between revisions of "User:Andr3w/vector.js"

From SQLZOO
Jump to: navigation, search
Line 3: Line 3:
 
     $('.quf textarea').each(function(){
 
     $('.quf textarea').each(function(){
 
       var ans = $(this).closest('form.quf').next('.ans').text()
 
       var ans = $(this).closest('form.quf').next('.ans').text()
       consol.log(ans);
+
       console.log(ans);
 
     })
 
     })
 
   }
 
   }
 
})
 
})

Revision as of 21:07, 28 February 2013

$(function(){
  if (window.location.search.contains('answer')){
    $('.quf textarea').each(function(){
       var ans = $(this).closest('form.quf').next('.ans').text()
       console.log(ans);
    })
  }
})
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense