Closed

need elements swapped on a page using javascript php or css

This project received 9 bids from talented freelancers with an average bid price of $74 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
$30 - $250 USD
Total Bids
9
Project Description

I have a checkbox that when clicked shows a drop down list. i just want them to change positions.

Problem is when i change positions using php, it throws an ajax error. Since each one is called in a dynamic div id, i cannot really use CSS to change it.

I have looked into just creating a top margin using nth-child in css, but haven't had luck with that either.

Right now the check box toggles the drop down's visibility, but the check box is below where the dropdown appears. I guess another approach is to use javascript somehow... Am I missing something? Why can't the order be swapped?

Help!

$ret['reclength'] = new QListBox($objParent);
$ret['length']->Name = _sp('Item Name');

$ret['length']->AddItem("weekly", "7");
$ret['length']->AddItem("bi-weekly","14" );
$ret['length']->AddItem("Monthly","30" );
$ret['length']->Display=false;

$ret['checkbox'] = new QCheckbox($objParent);
$ret['checkbox']->Name = _sp('checkbox name');
$ret['checkbox']->AddAction(new QClickEvent(), new QToggleDisplayAction($ret['length']));

return $ret;

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online