You need to sign in to do that
Don't have an account?
Aurora Ganguly 10
script in vf page(salesforce)
Hi All,
as you can see i used this code : '<input type="radio" name="type" value="exp"> <label>Bill to Room</label>'+
'<select>'+
'<option> --- </option>'+
'<option> Room 1 </option>'+
'<option> Room 2 </option>'+
'<option> Room 3 </option>'+
'<option> Room 4 </option>'+
'<option> Room 5 </option>'+
'<option> Room 6 </option>'+
'</select>'+
'<input type="radio" name="type" value="fresher"> PAY NOW'+
'<br/>'+
'<br/>'+
since i have two radio button , and fro this i used the script , this code: $(document).ready(function(){
$('select').hide();
$('input').on('change', function(){
$('select').show();
})
});
but the thing is , i want when i will click on the first radio button it will populate the dropdown options and onclick of the second radio button it should hide, but its not happening, whenever i click on anyone of the radio button it is showing the dropdown menu , how to restrict that , can anyone share your views based on my coding parts
thanks
as you can see i used this code : '<input type="radio" name="type" value="exp"> <label>Bill to Room</label>'+
'<select>'+
'<option> --- </option>'+
'<option> Room 1 </option>'+
'<option> Room 2 </option>'+
'<option> Room 3 </option>'+
'<option> Room 4 </option>'+
'<option> Room 5 </option>'+
'<option> Room 6 </option>'+
'</select>'+
'<input type="radio" name="type" value="fresher"> PAY NOW'+
'<br/>'+
'<br/>'+
since i have two radio button , and fro this i used the script , this code: $(document).ready(function(){
$('select').hide();
$('input').on('change', function(){
$('select').show();
})
});
but the thing is , i want when i will click on the first radio button it will populate the dropdown options and onclick of the second radio button it should hide, but its not happening, whenever i click on anyone of the radio button it is showing the dropdown menu , how to restrict that , can anyone share your views based on my coding parts
thanks
Would you mind posting the entrire source code so that I can take a look?
All Answers
Try this and you should be golden -
Would you mind posting the entrire source code so that I can take a look?
'+ '
Order Confirmation
'+ ''+ '
'+ '
Payment Confirmation
'+ ''+ '
'+ '
'+ '
'+ '
'+ 'CHECKOUT CLOSE'+ ''+ '
Also, I still think that you are only revealing portions of some big code. I understand you probably will not be in a position to share the whole stuff but still remember it is quite difficult to troubleshoot by looking at only a piece of the code. We need to look into the entire code in order to understand the problem.
Please do post the entire stuff and I am pretty sure I can help you fix it.
can we setup a call so that i can take you through the entire code since you need to look into the entire code inorder to understand the problem .
just let me know when is the good time to have a call with you .
actualy i was placing the code in wrong place , and atlast it worked , thanks for ur help .