From: Scott Worley Date: Thu, 27 Feb 2014 02:02:44 +0000 (-0800) Subject: Use $.attr() X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/5b0253be97ed5970156f3a9ca58960f29e55da0b Use $.attr() --- diff --git a/picsorter.js b/picsorter.js index 9a1b1c1..c51b51e 100644 --- a/picsorter.js +++ b/picsorter.js @@ -1,7 +1,7 @@ var exposure = 20; function setpic(pic) { - $("#pic")[0].src = exposure + "/" + pic; + $("#pic").attr("src", exposure + "/" + pic); } $(function() {