hi please help me how can i separate this function for each different radio name $(document).ready(function() { $("div.desc").hide(); $("input[name$='sharedprices']").change(function() { $("div.desc").hide(); $("#" + this.value).show(); }).filter(function(){ return this.checked; }).change(); }); Code (markup):
Try googling a little.. here's something that could get you started: http://www.w3schools.com/jsref/met_doc_getelementbyid.asp I think you should read about HTML & javascript/jquery in w3schools if you lack this knowledge. If you get some sort of code and having trouble - post the code and I'll gladly help.