Jump to content

simple goto


DrTrans

Recommended Posts


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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.