Advertisement
Guest User

adssdada

a guest
Mar 2nd, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $(document).ready(function () {
  2. var courseID=$("#course").val();
  3. console.log(courseID);
  4. $("#course").on("change", function () {
  5. courseID = $('#course').find(":selected").attr("value")
  6.  
  7. $.ajax({
  8. method: "GET",
  9. data: {
  10. coursesId: courseID
  11. }
  12. }).done(function (response) {
  13.  
  14. });
  15. console.log(courseID);
  16. });
  17.  
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement