<script src="http://code.jquery.com/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
function chooseLocationType(location, title, demand){
alert(demand);
}
<body>
<input
name="tempstaff_location"
class="ques_radio"
id='tempstaff_location'
value='location_'
type="radio" onclick="chooseLocationType('a','b','c')" />
</body>
I have the folowing code, on click of the radio box , There is one conditional code based on this to show hide some dive.
And there is one more jQuery script which run on Click and used function.
jQuery(this)
input[name=tempstaff_location]").click(function(){
if(jQuery(this).attr("checked")){
});
How can I combine both script in one.