jQuery.noConflict(); jQuery(document).ready(function(){ var giftopt = jQuery(\"#giftopt\"); if (\"#giftopt == 'Someone Else'\") { //do something }; if (\"#giftopt == 'Me'\") { //do something };});
var testText = $(\"td#giftopt\").text();
I tried the following with no luck:
http://docs.jquery.com/Attributes/text