-5

Possible Duplicate:
Disable Drag and Drop on HTML elements?

I was wondering if there is a way to make certain images so they cant be drag? I would think there would be a css attribute however i cant find anything.

This is the site im working on: https://i.stack.imgur.com/bqzbG.png My goal is to make it so the logo cant be dragged.

Community
  • 1
  • 1
Jshulman
  • 1
  • 1

1 Answers1

-2

this is how to enable and disable drag effect

$("#imageid").draggable('disable'); //disable
$("#imageid").draggable();  //enable

Now it really depends on you were to do this.

themhz
  • 8,335
  • 21
  • 84
  • 109
  • The question doesn't mention jQuery and isn't tagged with jQuery. – j08691 Sep 01 '12 at 21:41
  • man its javascript, and he can use jquery to solve his problem. for me jquery and javascript are almost one. anyway good luck – themhz Sep 01 '12 at 21:43