Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Folks, I have created Three check boxes called H, M, and L . What i want is if i checked on H then value should get select in field called "HML" and if i unchecked it then it should not select that value.
[] H []M [] L
I have achieved the functionality of after clicking on H then it is selecting H value in field called "HML" but when i am unchecking it is not removing that selection from field 'HML' .
If i select on H and M then both value should show as selected one but if i unchecked one of them then only unchecked value should get clear from that field "HML".
Can somebody please help me ...below is my HTML and Jquery code for your refernce .
Help would be much appreciated as its little urgent
/// HTML code // H M L
<HTML>
<Body>
<label><input type="checkbox" id="High" value="H" name="HML"> H</label>
<label><input type="checkbox" id="Medium" value="M" name="HML"> M</label>
<label><input type="checkbox" id="Low" value="L" name="HML"> L</label>
</body>
</HTML>
///// Below is the J query Code
$('#High').on('click',function() {
if(this.checked == true){
app2.field('HML').selectValues([{qText:$(this).val()}], true, true);
}
});
$('#Medium').change(function() {
if(this.checked == true){
app2.field('HML').selectValues([{qText:$(this).val()}], true, true);
} });
$('#Low').change(function() {
if(this.checked == true){
app2.field('HML').selectValues([{qText:$(this).val()}], true, true);
}});
Thanks Sarfaraz
Can anybody please help me on this.
Thanks
Sarfaraz