Thanks in advance, I'm trying to create an if statement that will help me solve an issue. I want to be able to assign an ID for a button and if that ID matches the "if statement id entered" it will run my script else it wont do nothing. i'v tried couple of things, but with no luck, I'm new to jQuery hope someone could give a hint,any other suggestion will be great ,cheers.
this is the script I want to run:
jQuery("#myId").append("<i class='fa fa-camera-retro fa-lg'></i>");
this is what iv tried:
if($('a' == '#myId') {
jQuery("#myId").append("<i class='fa fa-camera-retro fa-lg'></i>");
}
thanks to all