如何使用按钮将问题树中的答案导出到记事本 [英] How to export answers in a question tree to notepad using buttons

查看:53
本文介绍了如何使用按钮将问题树中的答案导出到记事本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我正在尝试创建一个HTML决策树,人们可以使用按钮选择问题的答案,这将使他们达到他们所需的分辨率。



我正在做的是将他们选择处理的答案的数据转移到记事本或其他类型的文件中,然后他们可以将这些文件复制并过去到日志中。



我看了一下,但目前在任何论坛上找不到任何东西,所以不认为这是可能的,但我想我会问。



我的编码只是为了给你一个想法;



Hi
I am trying to create a HTML decision tree where people can select answers to questions using buttons and this will bring them to the resolution they need.

What i am looking at doing is transferring the data for the answers they select to process into a notepad or other type of document which they can then copy and past into a log.

I have had a look around but currently cannot find anything on any forums so didn't think this was possible but thought I would ask.

My coding is like this just to give you an idea;

<div id="q6_Question" Style="display:none">
<p <? echo $pstyle ?>> Question? </p>
<button <? echo $style ?> onclick="document.getElementById('q7_Answer1').style.display = 'block';document.getElementById('q6_Answer1').style.display = 'none' ;">Button1 </button>
<button <? echo $style ?> onclick="document.getElementById('q7_Answer2').style.display = 'block';document.getElementById('q6_Answer2').style.display = 'none' ;">Button2 </button>
</div>

推荐答案

pstyle > >题? < / p >
< 按钮 <? echo
pstyle ?>> Question? </p> <button <? echo


style > onclick =document.getElementById('q7_Answer1')。style.display ='block'; document。 getElementById('q6_Answer1')。style.display ='none';> Button1 < / button >
< 按钮 <? echo
style ?> onclick="document.getElementById('q7_Answer1').style.display = 'block';document.getElementById('q6_Answer1').style.display = 'none' ;">Button1 </button> <button <? echo


style > onclick =document.getElementById('q7_Answer2')。style.display ='block'; document.getElementById('q6_Answer2 ')。style.display ='none';> Button2 < / button >
< / div < span class =code-keyword>>
style ?> onclick="document.getElementById('q7_Answer2').style.display = 'block';document.getElementById('q6_Answer2').style.display = 'none' ;">Button2 </button> </div>


这篇关于如何使用按钮将问题树中的答案导出到记事本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆