From 5b0253be97ed5970156f3a9ca58960f29e55da0b Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 26 Feb 2014 18:02:44 -0800 Subject: [PATCH] Use $.attr() --- picsorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.44.1