javascript - JQuery css function not persisting its change -
i have "button-bar" div want show once user has clicked on "settings" button. have set button-bar div display:none in css. unfortunately, when settings button clicked, div shows split second, goes away. know why might happening? current code:
$(document).ready(function() { $('#settings').on('click', function() { $('#button-bar').css('display', 'inline-block'); }); });
the problem href="" empty, reloading page. put hashtags in them. href="#"
Comments
Post a Comment