source()
A Sniper method that provides a fast, easy and a more robust way to set and get image sources
GET img src
$('#img').source() // https://jubbytech.com/sniper/test/images/teacher.jpeg$('#img').source(false) // ./images/teacher.jpegSET img src
$('#img').source("images/student.png");
$('#img').source("https://jubbytech.com/sniper/test/images/student.png");A Callback Function for source()
Last updated