from IPython.display import HTML
function input_hide_display() {
$('.sagecell_input').each(function(id) {
if (id==0||$(this).html().indexOf('hide_display')>-1)
$('.sagecell_input').css('opacity',0);}
else {$('.sagecell_input').each(function(id){$(this).show();});
$('.sagecell_input').css('opacity',1);};
$(document).ready(input_hide_display);
<form action='javascript:input_hide_display()'>
<input style='color:slategray; background:silver; opacity:.7;'
type='submit' value='click to display or hide div'></form>"""))
No comments:
Post a Comment