遍历input。select option 选中的值

<label>
<input type="radio" value="0" />周一至周五
</label>
<br />
<label>
<input type="radio" value="1" />周六、周日
</label>
<br />
<label>
<input type="radio" value="2" />上门时间不限
</label>

$("input:radio:checked").val();

、、

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="header.ascx.cs" Inherits="controls_header" %>
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?19c289cc1b1f829529e884c5889030bb";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript" src="http://www.likecs.com/js/string.format.js"></script>
<style>
.OnlineBooking
{
width: 184px;
height: 305px;
position: fixed;
z-index: 1000006;
right: 10px;
top: 110px;
background: url(../images/OnlineBooking_bg.png) repeat-x;
z-index: 1000000;
}
.order
{
background: #ffb64a;
width: 131px;
height: 43px;
text-align: center;
margin-top: 15px;
line-height: 43px;
font-size: 18px;
}
.order a
{
color: #001b38;
display: block;
}
.hotline
{
font-size: 20px;
color: #ffb64a;
text-align: center;
margin-top: 25px;
line-height: 30px;
}
.maskBox
{
width: 1920px;
height: 1080px;
background: url(../images/maskBoxBg.png) repeat;
position: fixed;
z-index: 1000005;
overflow: hidden;
}
.OnlineBookingBox
{
width: 1000px;
height: 869px;
background: url(../images/OnlineBookingBox.png) no-repeat;
position: fixed;
z-index: 100000000;
right: 250px;
top: 50px;
}
.OnlineBookingBox1
{
width: 1000px;
height: 869px;
background: url(../images/OnlineBookingBox.png) no-repeat;
position: fixed;
z-index: 100000000;
right: 250px;
top: 50px;
}

.closeBtn0
{
position: absolute;
right: 0px;
top: 0px;
background: none;
width: 72px;
height: 72px;
display: block;
}
.OnlineBooking_title
{
text-align: center;
line-height: 76px;
}
.ReservationBox
{
width: 772px;
height: auto;
margin: 0px auto;
margin-top: 15px;
}
.ReservationBox p
{
color: #dddfe1;
font-size: 18px;
text-align: center;
line-height: 30px;
}
.yuyueTable
{
width: 100%;
height: auto;
border: 0px;
color: #dddfe1;
font-size: 18px;
}
.yuyueTable td
{
padding: 6px 0px;
}
.yuyueTable td.pinlei
{
text-align: right;
padding-right: 20px;
width: 120px;
}
.asterisk
{
color: #ff7200;
padding-right: 3px;
}
input[type=text], textarea
{
background: #273e57;
border: 1px solid #4d6074;
color: #dddfe1;
line-height: 33px;
font-family: 黑体;
padding-left: 10px;
height: 33px;
}
input
{
margin-top: 0px;
}
.long
{
width: 610px;
}
.long2
{
width: 196px;
}
.InputBox
{
width: 620px;
}
.yuyueTable label
{
line-height: 35px;
}
input[type=radio]
{
padding-right: 5px;
}
/*select
{
background: #273e57;
border: 1px solid #4d6074;
color: #dddfe1;
line-height: 33px;
height: 33px;
font-family: 黑体;
}
select.selectBox0
{
width: 200px;
}*/
.repair
{
width: 620px;
}
.TipsBox
{
background: url(../images/TipsBoxBg.png) no-repeat;
width: 536px;
height: 198px;
margin: 0px auto;
text-align: left;
margin-top: 350px;
font-size: 18px;
}
.TipsBox p
{
padding: 40px 40px;
color: #dddfe1;
line-height: 35px;
}
.selectTwo
{
width: 200px;
margin-right: 4px;
cursor: pointer;
color: #DDDFE1;
line-height: 33px;
height: 33px;
font-family: 黑体; /* padding: 10px 0px;*/
margin-left: 5px;
}
.selectTwo_bg
{
background: #273e57;
border: 1px solid #4d6074;
width: 198px;
height: 33px;
line-height: 33px;
}
.selectTwoBox
{
width: 198px;
background: none repeat scroll 0% 0% #273E57;
border: 1px solid #4D6074;
color: #e4e6ea;
position: absolute;
}
.selectTwoBox ul li
{
line-height: 25px;
margin: 0px;
}
.Options00
{
float: left;
padding-left: 8px;
color: #e4e6ea;
}
.Drop-down_box
{
float: right;
vertical-align: middle;
padding: 10px;
}
.selectTwo li:hover
{
background-color: #1e90ff;
}
</style>
<script type="text/javascript">
var productcategoryid = 0;
var provinceid = 0;
var cityid = 0;
var distrctid = 0;
var systype = 0;
var formname = \'\';
var productcategoryName = "电热水器";
function XuanFu(index) {
$(".OnlineBookingBox").show();
getproductcategory();
if (index == 0) {
$("#title00").show();
$("#title01").hide();
$("#baoxiu").hide();
systype = 0;
formname = "安装预约";
}
else {
$("#title00").hide();
$("#title01").show();
$("#baoxiu").show();
}
$(".maskBox").show();
}
function getproductcategory(){
$.ajax({
url: "/webService/GetAddress.ashx?type=Getproductcategory",
dataType: "json",
success: function (data) {
for (var i = 0; i < data.length; i++) {
//$("#select4").append(String.format("<option value=\"{0}\"> {1} </option>", data[i].CategoryID, data[i].CategoryName));
}
}
});

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zgjsfw.html