Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Toggleme button with div: align left and right

    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.

    PHP Code:
    <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> 
    Last edited by pkmoazzam; 05-10-2011 at 03:14 AM. Reason: Toggle button with div: align left and right


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •