jquery - how to change Div based on another div -


my code this:

#border-content3 {     margin: 15px auto;     padding: 1%;         position: relative;                  float: left;     } #right-menu {     min-width: 150px;        margin: 15px auto;     padding: 1%;         position: relative;     font-family: tahoma, geneva, sans-serif !important;     font-size: 12px !important;      float: right; } 

and html code this:

<div id="right-menu">   </div> <div id="border-content3"> <input name="test" class="test" id="test" value="a" type="checkbox" /> </div> 

i try moving checkbox on right menu,but not work this

$('#test').css("position","absolute"); $('#test').css("z-index","3000")); $('#test').animate({left:'400'},1000)); 

please me moving select element on right menu jquery

you have 3 typos in code. 2 ), , missing px

$('#test').css("position","absolute");  $('#test').css("z-index","3000") **)** ;  $('#test').animate({left:'400 **px** '},1000) **)** ; 

try this: http://jsfiddle.net/avrahamcool/gcgwv/3/

(tried on ff, chrome, ie 10, safari 5)


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -