Monday, 11 December 2017

javascript - How to run a function from radio button mouseup event?

I'm trying to use a pair of radio buttons to start/stop an
automated horizontal scroller. I've tried several jquery techniques that I found on SO,
but I haven't been able to get them to
work.




Here's my latest
attempt:



$( "#radAutoScroll0"
).mouseup(function() {
scrollTimer();
});
function
scrollTimer(){
if($("#radAutoScroll0").is(':checked')){
//
scroller code.....
}
}


class="scrollDiv">

for="radAutoScroll0" class="labAutoScroll">
name='radAutoScroll' id='radAutoScroll0' class="rad1" checked="checked"
value='on'/>On




No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...