1

I've been getting error when trying to implement this

   ie.Eval("$(this).parent().removeClass("sortHelper");");

I was refering to this page :fire jQuery

and visual studio finds a syntax error.Is this the correct way for me to declare Eval?

Community
  • 1
  • 1
someguy
  • 995
  • 3
  • 11
  • 22

2 Answers2

3

You can see from the syntax coloring on Stack Overflow that you are prematurely terminating the string. Change your quotes to this:

ie.Eval('$(this).parent().removeClass("sortHelper");');

See the difference?

Matt Ball
  • 354,903
  • 100
  • 647
  • 710
0

Switch the quotes from the previous answer (single quotes are for char):

ie.Eval("$(this).parent().removeClass('sortHelper');");

Guillaume86
  • 14,341
  • 4
  • 53
  • 53