Jquery toggle link not working on phone/tablet -
I have a link that toggles the visibility of a certain text element on a webpage. Example can be seen here: (Near the text plus icon "Last Nosti izdelka"). It works fine on desktops, but does not work on any phone (android) or tablet (Android). Not yet tested on the iPad, but still ... it should work anywhere.
The link has been written as follows:
& lt; A href = "javascript: zero (0)," style = "display: block" onClick = "toggleFeature ()" & gt; & Lt; Img id = "togglePic" src = "/ images / plus.png" border = "0" & gt; & Lt; / A & gt;
and togglefactory is a function that is defined:
function togglefeature ($ {$ ('# features-container'). Toggle ( 400); Pic = $ ('# togglePic'). Attr ('src'); If (pic.indexOf ('plus')> 0) {$ ('# togglePic'). Attr ('src' '/ Images / minus.png');} and {$ ('# togglePic'). Attr ('src', '/ images / plus.png');}}
Any ideas why this will not work
Comments
Post a Comment