How to properly integrate JQuery with IP.Board?

591 Views Asked by At

I've been having some trouble integrating a JQuery background chooser with an IP.Board forum. I've tried including noConflict but it seems to disable JQuery completely. The code I'm using is this:

$("#Btn").click(function(){
    $("#Image").css("backgroundImage", "url('"+$("#ImageUrl").val()+"')");
});
1

There are 1 best solutions below

0
On

Use jQuery(elem) instead of $(elem) or if you want to use $ then do what I did:

jQuery(function($) {
    // jQuery code goes here
});