Last post Sep 30, 2017 03:22 AM by hkbeer
Member
738 Points
2365 Posts
Sep 30, 2017 01:52 AM|hkbeer|LINK
Currently there is a table with ID="table1" and I previously applied jquery to make it invisible:-
$("#table1").attr("style", "display: none")
I want on click of a hyperlink, two actions (1) the table1 display again on this same aspx page and (2) take user to yahoo on new page
I have this code on my aspx.
<a href="www.yahoo.com" id="Hyperlink1" target="_blank" onclick="displaying()"> Click me</a> <script> function displaying { $("#table1").attr("style", "") } </script>
It takes user to yahoo on new page but it did not display table1 on original page.
I checked the rendered HTML the style of table1 is still "display:none"
Seems the function displaying () did not fire..
What can I do ? Thanks
Sep 30, 2017 03:22 AM|hkbeer|LINK
It works now.
I found I missed the bracket
function displaying () {...
Member
738 Points
2365 Posts
Why is this code not working on my aspx ?
Sep 30, 2017 01:52 AM|hkbeer|LINK
Currently there is a table with ID="table1" and I previously applied jquery to make it invisible:-
I want on click of a hyperlink, two actions (1) the table1 display again on this same aspx page and (2) take user to yahoo on new page
I have this code on my aspx.
It takes user to yahoo on new page but it did not display table1 on original page.
I checked the rendered HTML the style of table1 is still "display:none"
Seems the function displaying () did not fire..
What can I do ? Thanks
www.developerfusion.com/tools/convert/csharp-to-vb/
Member
738 Points
2365 Posts
Re: Why is this code not working on my aspx ?
Sep 30, 2017 03:22 AM|hkbeer|LINK
It works now.
I found I missed the bracket
www.developerfusion.com/tools/convert/csharp-to-vb/