jquery - What is wrong with this javascript -


argh! what's wrong this??

$(document).ready(function() {   var monkeytrouble = $('#monkeytrouble').attr('rel');   if (monkeytrouble = "banana") {     alert("oooh oooh ahh ahhh");   } }); 

think looking this...

if (monkeytrouble == "banana") { 

hope helps!


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -