DrTrans Posted February 12, 2013 Share Posted February 12, 2013 jQuery("#divResult").live("click",function(e){ var $clicked = $(e.target); [color=#ff0000]var data = $("#divResult");[/color] var $name = $clicked.find('.name').html(); var decoded = $("<div/>").html($name).text(); $('#inputSearch').val(decoded); alert(data); }); What im trying to do is. #divResult gives back the following " This is a test 148 "; what im looking to do is on the click go to " http://domain.com?num=$data" Right now, i cant even get it to display the " This is a test 148 . im sure there is a way to view the content of $("#divResult"); Link to comment https://forums.phpfreaks.com/topic/274374-simple-goto/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.