第一次发布海报......请不要打扰我。我甚至不确定这一切是如何运作的,但是这里有。我基本上试图重新创建位于此处的表单:http://yeticustomshop.com/get-quote 我有产品选择显示和现在显示的表格。
需要的用户体验:
任何参赛者?
// Get all the product radio buttons and loop them
var products = document.getElementsByName('product');
for (var i = products.length; i--;) {
// add an event listener to do stuff when one of them is clicked
products[i].addEventListener("click", function() {
// get the value of the clicked button
var cup = this.value;
// put the value in the input box
document.getElementById('yourSelection').value = cup;
// hide the radio buttons and show the table
document.getElementById("cupDesc").style.display = "block";
document.getElementById("cupSelect").style.display = "none";
});
}
感谢用户“I wrestled a bear once”的帮助!
答案 0 :(得分:0)
你走了。请注意解释的评论。
SELECT
ShippingMethodValue = XC.value('(shippingmethod/@Value)[1]', 'varchar(50)'),
ShippingMethodName = XC.value('(shippingmethod/@Name)[1]', 'varchar(50)'),
DiscountValue = XC.value('(discount/@Value)[1]', 'varchar(50)'),
CustomDiscountValue = XC.value('(customdiscount/@Value)[1]', 'varchar(50)'),
PONumber= XC.value('(ponumber/@Value)[1]', 'bigint' )
FROM
Customer
CROSS APPLY
CustomerHeaderUncompressed.nodes('/CustomerHeaderData/CustomerHeader') AS XT(XC)
请注意,在使用// Get all the product radio buttons and loop them
var products = document.getElementsByName('product');
for (var i = products.length; i--;) {
// add an event listener to do stuff when one of them is clicked
products[i].addEventListener("click", function() {
// get the value of the clicked button
var cup = this.value;
// put the value in the input box
document.getElementById('yourSelection').value = cup;
// hide the radio buttons and show the table
document.getElementById("cupDesc").style.display = "block";
document.getElementById("cupSelect").style.display = "none";
});
}
快乐的编码!