-1
버튼을 클릭 한 후 결과가 통과되었음을 나타내려는 5 개의 필드 세트가 있습니다. 보시다시피 버튼을 클릭하고 마지막으로 이동하려는 항목을 선택하십시오. 여기 버튼 클릭 결과 인쇄
$(document).ready(function() {
var results = "";
$('button').click(function() {
results += $(this).attr("value") + "<br>";
});
$("#demo").html(results);
});
는 HTML 코드이 코드에서
<fieldset>
<h2 class="fs-title">Pick a Type</h2>
<input type="button" name="next" class="next action-button" value="VoIP" /> <br>
<input type="button" name="next" class="next action-button" value="Analog" />
</br>
<input type="text" name="custom" placeholder="Custom" style="width: 100px;"/>
<br>
<!--<input type="button" name="next" class="next action-button" value="Next" style="float:right" />
<input type="button" name="previous" class="previous action-button" value="Previous" style="float:left" />
-->
</fieldset>
<fieldset>
<h2 class="fs-title">Pick a Sub-Type</h2>
<input type="button" name="next" class="next action-button" value="Desk Phone" /><br>
<input type="button" name="next" class="next action-button" value="Polycom" /> <br>
<input type="button" name="next" class="next action-button" value="Wireless Phone" style="white-space:normal"/> <br>
<input type="text" name="customsub" placeholder="Custom " style="width: 100px;"/>
<br>
<br>
<br>
</br>
<!--<input type="button" name="previous" class="previous action-button" value="Cancel" style="float:left" /> -->
</fieldset>
<fieldset>
<h2 class="fs-title">Enter Model</h2>
<input type="text" name="model" placeholder="Model"/>
<input type="button" name="next" class="next action-button" value="Next" style="float:right" />
<input type="button" name="previous" class="previous action-button" value="Previous" style="float:left" />
</fieldset>
<fieldset id="sample">
<h2 class="fs-title">Complete</h2>
<h3 class="fs-subtitle">Equipment Added Successfully!</h3>
<p id="demo"> </p>
<input type="button" name="previous" class="previous action-button" value="Add Another" />
<input type="submit" name="submit" class="submit action-button" value="Done" />
</fieldset>
가 너무 HTML을하시기 바랍니다 줄 수 있습니까? – Niflhel
완료되었습니다. – WakkaDroid