I'm trying to have working JQuery button menu which will change in attribute data, so will autoreload what's inside object parameter, but it don't want to work :(
The code with CSS, HTML and JQuery is in below link
http://jsbin.com/iqukak/2/edit
Anyone can help?
$('button#1').attr("id"){
$("object#cgi").attr('data','http://www.google.com')};
$('button#2').attr("id"){
$("object#cgi").attr('data','http://www.bing.com')};
$('button#3').attr("id"){
$("object#cgi").attr('data','http://www.yahoo.com')};
});
Update:
I have uploaded all the files to http://szary.eu/panel/
What I want to achive is:
- when I click on 1 i need 1.html inside <object>
visible
- when I click on 2 I need 2.html inside <object>
visible