Jump to content

jQuery sortable in IE8


jug

Recommended Posts

Hi,

 

I have quite a simple script that utilises the jquery sortable functionality. It works brilliantly in FF and chromes but fails quite spectacularly in IE8. As you will see from the code below, what Im trying to do, is to sort on two levels, horizontally and vertically. If anyone knows a workaround to make this work in IE8 it would be much appreciated.

 


<html>

<head>
	<title>Sortable Test</title>

	<script src="jquery.js" type="text/javascript"></script>
	<script src="jquery_ui.js" type="text/javascript"></script>

	<style type="text/css">

		#sortable .vertical { width:600px; height:100px; border:1px solid #000; }
		#sortable .horizontal div { width:150px; height:80px; border:1px solid #000; float:left;}
		p {margin:0; padding:0;}

	</style>

	<script type="text/javascript">

		$(function() {
			$("#sortable").sortable();
			$("#sortable .horizontal").sortable();
		});

	</script>
</head>

<body>

	<div id="sortable">

		<div class="vertical">

			<p>here</p>

			<div class="horizontal">
				<div><p>here</p></div>
				<div><p>here</p></div>
				<div><p>here</p></div>
			</div>

		</div>

		<div class="vertical">

			<p>here</p>

			<div class="horizontal">
				<div><p>here</p></div>
				<div><p>here</p></div>
			</div>

		</div>

	</div>

</body>

</html>

 

Thanks in advance

 

jug

Link to comment
https://forums.phpfreaks.com/topic/225605-jquery-sortable-in-ie8/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.