Size
style="height:18px; width:18px; float:left; overflow:hidden; margin: 0;padding: 0 ;"
html-check
s2=document.getElementById('admin').checked ? "1" :"0"
submit
<input id='testName' type='checkbox' value='Yes' name='testName'>
<input id='testNameHidden' type='hidden' value='No' name='testName'>
Before submitting the form , disabled the hidden field based on the checked condition
if(document.getElementById("testName").checked){
document.getElementById('testNameHidden').disabled = true;
}
value
$(this).val(this.checked ? 1 : 0);
if (this.checked) {_refreshv2('hidden_<%=tableField%>',1);} else {_refreshv2('hidden_<%=tableField%>',0);}
$('.DeliveryTo').css('display',(this.checked?'none':'inline'));
$('.DeliveryTo').css('display',(document.getElementById('this.id').checked?'none':'inline'));
沒有留言:
張貼留言