need elements swapped on a page using javascript php or css


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?


$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['checkbox'] = new QCheckbox($objParent);

$ret['checkbox']->Name = _sp('checkbox name');

$ret['checkbox']->AddAction(new QClickEvent(), new QToggleDisplayAction($ret['length']));

return $ret;

Skills: Anything Goes, CSS, Javascript, PHP

See more: i.t. positions, creating a page, javascript php, ajax javascript php, javascript monthly, ajax css display, css page change, dropdown css, checkbox dropdown, javascript dynamic page, dynamic drop list, css dropdown checkbox, dynamic ajax php, drop box javascript, css drop list box, dropdown javascript php, php ajax drop list, order page dynamic javascript, box using php, dynamic drop using ajax php, dropdown php using ajax, checkbox ajax display, css checkbox, dropdown using ajax php, dynamic dropdown

About the Employer:
( 38 reviews ) St. Petersburg, United States

Project ID: #3983920

8 freelancers are bidding on average $71 for this job


Hello Please read more than private message thank you

$100 USD in 1 day
(131 Reviews)

I'm intrested. check PM

$30 USD in 1 day
(40 Reviews)

Let Champian handle this for you.

$99 USD in 1 day
(53 Reviews)

Web developer, can recode/fix placment problem. See PM for questions..

$30 USD in 1 day
(85 Reviews)

Hello! I fix this for you quickly and easily, and in a matter of hours. I'm proficient in PHP, HTML, Javascript, and CSS. Looking forward to working with you, - Matt

$30 USD in 0 days
(24 Reviews)

Hello, I can help you figure out why the positioning of your elements is not showing up the way you require. Please let me know if you would like to get started. Thanks. Ben.

$40 USD in 0 days
(17 Reviews)

Hi. I'm a JavaScript/AJAX expert. Ready to start. Regards.

$60 USD in 2 days
(18 Reviews)

hi, i have 3+ years of experienced as php developer, css, jquery, please contact me. Regards.

$30 USD in 1 day
(7 Reviews)

This website's owners stole our money in the past. Please do not pay any fee to these thieves. We are freelance software developers. If you contact me I can give a quote for your project and we can discuss the details. More

$250 USD in 1 day
(0 Reviews)