PDA

View Full Version : toggleme button with div: align left and right


pkmoazzam
05-09-2011, 11:11 PM
how do i input "computer repair" on the left and "$$.$$/hr" on the right in the same toggleme button?

example input the button

Computer repair............................................ .......$$.$$/hr (without dots)

any help would be much appreciated

Thank you.


<script type="text/javascript">
function toggleMe(a){
var e=document.getElementById(a);
if(!e)return true;
if(e.style.display=="none"){
e.style.display="block"
} else {
e.style.display="none"
}
return true;
}
</script>

<div>
<input type="button" class="button" onclick="return toggleMe('para1')" value="Computer Repair $$.$$/hr">
</div>
<div id="para1" style="display:none">
Desktop repair install/reinstall Hardware $$.$$/hr + cost of parts (if required)
Laptop repair install/reinstall Hardware $$.$$/hr + cost of parts (if required)
</div>