Upgrading from jQuery 1.3.2 to 1.4

0 minute read

I’m going to capture the things I find that are problems as I upgrade my jQuery Library for SharePoint Web Services from jQuery 1.3.2 to the just released jQuery 1.4. In theory everything ought to work as is, but we all know that life doesn’t always work that way.  As I find things, I’ll add them to this post.

$().find(…) Selectors

I had to clean up some find() selectors I was using.  They probably weren’t quite kosher in 1.3.2, either, but in 1.4 they just plain didn’t work.

This is an example of the old code:

if((this.Obj = $().find("select:[Title='" + colName + "']")).html() != null) {

and the new code:

if((this.Obj = $("select[Title='" + colName + "']")).html() != null) {

So $().find(...) is bad, and $(...) is good. The up side of this is I save a few bytes every time. Woo hoo!



  1. Thanks Marc! Keep these coming! I’m hestitant to jump to 1.4 cause I don’t have time to go fixing all annoying breakages. Your posts will definitely help when I do make the leap! :)

  2. Hey Marc.

    Noticed that the : is missing in the new code as well (“select:[Title='” became “select[Title='”), is that just an oversight, or was that also an issue?

    Thanks, appreciate the sharing,

    • The colon doesn’t hurt anything, but it isn’t necessary, either, so I’ve removed it. I think I had started with someone else’s sample code way back that used it, but it isn’t required.



Have a thought or opinion?