November 2017
Beginner
180 pages
4h 37m
English
© Jack Franklin, Russ Ferguson 2017
Jack Franklin and Russ Ferguson, Beginning jQuery, https://doi.org/10.1007/978-1-4842-3027-5_10
Jack Franklin1 and Russ Ferguson2
(1)Aviation House, GDS, 6th Floor Aviation House, London, UK
(2)Apt 129, Ocean, New Jersey, USA
You ended the last chapter with a pretty awesome accordion plug-in that you built based on the initial accordion code you wrote in Chapter 5. In this chapter, you will take your TVmaze API work from Chapter 8 and turn it into a plug-in. You’ll do this by making a slightly different type of plug-in, one that exists directly on the jQuery object. This means instead of calling it on a set, as you did previously:
$("div").somePlugin();you call it directly:
$.somePlugin(); ...Read now
Unlock full access