I am getting CSS 'left' property value. now it is set on -50. so i want to get only 50 can this be done with split function or there is another way to do that. Also why split function is not working in my function
<head>
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.box').click(function (){
var kar=parseInt($(this).css('left'))
var jj= kar.split('')
alert(jj[0])
})
});
</script>
<style>
.container {
margin:auto;
width:500px;
position:relative
}
.box { background:#FF0000; width:200px; height:200px; position:absolute;left:-50px;}
</style>
</head>
<body>
<div class="container">
<div class="box"></div>
</div>
</body>