?
Solved

link to hyperlink contained in table row in a javascript function

Posted on 2014-08-14
1
Medium Priority
?
164 Views
Last Modified: 2014-08-14
I have an ASP.NET MVC 4 application I created with Visual Studio 2013.
I used the Basic Template, C#, Razor and I'm using Entity Framework 6 and Sql Server 2008 R2.

My example uses a sample sql server table which I called Teams.  My Teams table looks like this:

My Teams sql server table
This is the script to create table:

CREATE TABLE [dbo].[Teams](
	[TeamID] [int] NOT NULL,
	[TeamName] [varchar](255) NULL,
	[ConferenceID] [int] NOT NULL,
	[Conference] [varchar](255) NULL,
	[Division] [varchar](255) NULL,
	[TeamWebsite] [varchar](255) NULL,
	[TeamLogo] [varchar](255) NULL,
	[TeamCheerleaders] [varchar](255) NULL,
	[City] [varchar](255) NULL,
	[State] [varchar](255) NULL,
	[Stadium] [varchar](255) NULL,
 CONSTRAINT [PK_Teams] PRIMARY KEY CLUSTERED 
(
	[TeamID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[Teams]  WITH CHECK ADD  CONSTRAINT [FK_Teams_Conferences] FOREIGN KEY([ConferenceID])
REFERENCES [dbo].[Conferences] ([ConferenceID])
GO
ALTER TABLE [dbo].[Teams] CHECK CONSTRAINT [FK_Teams_Conferences]
GO
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (1, N'Arizona Cardinals', 2, N'National', N'West', N'http://www.azcardinals.com', N'ARI_logo-50x50.gif', N'http://www.azcardinals.com/cheerleaders', N'Glendale', N'Arizona', N'University of Phoenix Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (2, N'Atlanta Falcons', 2, N'National', N'South', N'http://www.atlantafalcons.com', N'ATL_logo-50x50.gif', N'http://www.atlantafalcons.com/People/2009_Cheer_Roster.aspx', N'Atlanta', N'Georgia', N'Georgia Dome')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (3, N'Baltimore Ravens', 1, N'American', N'North', N'http://www.baltimoreravens.com', N'BAL_logo-50x50.gif', N'http://www.baltimoreravens.com/People/Cheer.aspx', N'Baltimore', N'Maryland', N'M&T Bank Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (4, N'Buffalo Bills', 1, N'American', N'East', N'http://www.buffalobills.com', N'BUF_logo-50x50.gif', N'http://www.buffalojills.net', N'Orchard Park', N'New York', N'Ralph Wilson Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (5, N'Carolina Panthers', 2, N'National', N'South', N'http://www.panthers.com', N'CAR_logo-50x50.gif', N'http://www.panthers.com/topcats/index.html', N'Charlotte', N'North Carolina', N'Bank of America Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (6, N'Chicago Bears', 2, N'National', N'North', N'http://www.chicagobears.com', N'CHI_logo-50x50.gif', NULL, N'Chicago', N'Illinois', N'Soldier Field')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (7, N'Cincinnati Bengals', 1, N'American', N'North', N'http://www.bengals.com', N'CIN_logo-50x50.gif', N'http://www.bengals.com/cheerleaders/index.html', N'Cincinnati', N'Ohio', N'Paul Brown Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (8, N'Cleveland Browns', 1, N'American', N'North', N'http://www.clevelandbrowns.com', N'CLE_logo-50x50.gif', NULL, N'Cleveland', N'Ohio', N'Cleveland Browns Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (9, N'Dallas Cowboys', 2, N'National', N'East', N'http://www.dallascowboys.com', N'DAL_logo-50x50.gif', N'http://www.dallascowboyscheerleaders.com', N'Arlington', N'Texas', N'Cowboys Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (10, N'Denver Broncos', 1, N'American', N'West', N'http://www.denverbroncos.com', N'DEN_logo-50x50.gif', N'http://www.denverbroncos.com/page.php?id=487', N'Denver', N'Colorado', N'Sports Authority Field at Mile High')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (11, N'Detroit Lions', 2, N'National', N'North', N'http://www.detroitlions.com', N'DET_logo-50x50.gif', NULL, N'Detroit', N'Michigan', N'Ford Field')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (12, N'Green Bay Packers', 2, N'National', N'North', N'http://www.packers.com', N'GB_logo-50x50.gif', NULL, N'Green Bay', N'Wisconsin', N'Lambeau Field')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (13, N'Houston Texans', 1, N'American', N'South', N'http://www.houstontexans.com', N'HOU_logo-50x50.gif', N'http://www.houstontexans.com/cheerleaders', N'Houston', N'Texas', N'Reliant Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (14, N'Indianapolis Colts', 1, N'American', N'South', N'http://www.colts.com', N'IND_logo-50x50.gif', N'http://www.colts.com/sub.cfm?page=cheer_home', N'Indianapolis', N'Indiana', N'Lucas Oil Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (15, N'Jacksonville Jaguars', 1, N'American', N'South', N'http://www.jaguars.com', N'JAC_logo-50x50.gif', N'http://www.jaguars.com/cheerleaders', N'Jacksonville', N'Florida', N'EverBank Field')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (16, N'Kansas City Chiefs', 1, N'American', N'West', N'http://www.kcchiefs.com', N'KC_logo-50x50.gif', N'http://www.kcchiefs.com/cheerleaders', N'Kansas City', N'Missouri', N'Arrowhead Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (17, N'Miami Dolphins', 1, N'American', N'East', N'http://www.miamidolphins.com', N'MIA_logo-50x50.gif', N'http://www.miamidolphins.com/newsite/cheerleaders/cheerleaders.asp', N'Miami Gardens', N'Florida', N'Sun Life Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (18, N'Minnesota Vikings', 2, N'National', N'North', N'http://www.vikings.com', N'MIN_logo-50x50.gif', N'http://www.minnesotavikings.com/CheerleadersRoster.aspx', N'Minneapolis', N'Minnesota', N'Hubert H. Humphrey Metrodome')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (19, N'New England Patriots', 1, N'American', N'East', N'http://www.patriots.com', N'NE_logo-50x50.gif', N'http://www.patriots.com/cheerleaders', N'Foxborough', N'Massachusetts', N'Gillette Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (20, N'New Orleans Saints', 2, N'National', N'South', N'http://www.neworleanssaints.com', N'NO_logo-50x50.gif', N'http://www.saintsations.org', N'New Orleans', N'Louisiana', N'Louisiana Superdome')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (21, N'New York Giants', 2, N'National', N'East', N'http://www.giants.com', N'NYG_logo-50x50.gif', NULL, N'East Rutherford', N'New Jersey', N'New Meadowlands Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (22, N'New York Jets', 1, N'American', N'East', N'http://www.newyorkjets.com', N'NYJ_logo-50x50.gif', N'http://www.newyorkjets.com/flight_crew', N'East Rutherford', N'New Jersey', N'New Meadowlands Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (23, N'Oakland Raiders', 1, N'American', N'West', N'http://www.raiders.com', N'OAK_logo-50x50.gif', N'http://www.raiders.com/Raiderettes/Default.aspx?id=768', N'Oakland', N'California', N'Oakland Coliseum')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (24, N'Philadelphia Eagles', 2, N'National', N'East', N'http://www.philadelphiaeagles.com', N'PHI_logo-50x50.gif', N'http://www.philadelphiaeagles.com/cheerleaders', N'Philadelphia', N'Pennsylvania', N'Lincoln Financial Field')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (25, N'Pittsburgh Steelers', 1, N'American', N'North', N'http://www.steelers.com', N'PIT_logo-50x50.gif', NULL, N'Pittsburgh', N'Pennsylvania', N'Heinz Field')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (26, N'San Diego Chargers', 1, N'American', N'West', N'http://www.chargers.com', N'SD_logo-50x50.gif', N'http://www.chargers.com/charger_girls', N'San Diego', N'California', N'Qualcomm Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (27, N'San Francisco 49ers', 2, N'National', N'West', N'http://www.sf49ers.com', N'SEA_logo-50x50.gif', N'http://www.sf49ers.com/cheerleaders', N'San Francisco', N'California', N'Candlestick Park')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (28, N'Seattle Seahawks', 2, N'National', N'West', N'http://www.seahawks.com', N'SF_logo-50x50.gif', N'http://www.seattleseagals.com', N'Seattle', N'Washington', N'CenturyLink Field')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (29, N'St. Louis Rams', 2, N'National', N'West', N'http://www.stlouisrams.com', N'STL_logo-50x50.gif', N'http://stlouisrams.com/Cheerleaders', N'St. Louis', N'Missouri', N'Edward Jones Dome')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (30, N'Tampa Bay Buccaneers', 2, N'National', N'South', N'http://www.buccaneers.com', N'TB_logo-50x50.gif', N'http://www.buccaneers.com/cheerleaders/cheermain.aspx', N'Tampa', N'Florida', N'Raymond James Stadium')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (31, N'Tennessee Titans', 1, N'American', N'South', N'http://www.titansonline.com', N'TEN_logo-50x50.gif', N'http://www.titansonline.com/cheerleaders/index.html', N'Nashville', N'Tennessee', N'LP Field')
INSERT [dbo].[Teams] ([TeamID], [TeamName], [ConferenceID], [Conference], [Division], [TeamWebsite], [TeamLogo], [TeamCheerleaders], [City], [State], [Stadium]) VALUES (32, N'Washington Redskins', 2, N'National', N'East', N'http://www.redskins.com', N'WAS_logo-50x50.gif', N'http://www.redskins.com/cheerleaders', N'Landover', N'Maryland', N'FedEx Field')

Open in new window


This is the code for stored procedure in my example:

CREATE PROCEDURE [dbo].[FETCHTEAMS]
AS
BEGIN
SELECT [TeamID]
      ,[TeamName]
      ,[ConferenceID]
      ,[Conference]
      ,[Division]
      ,[TeamWebsite]
      ,[TeamLogo]
      ,[TeamCheerleaders]
      ,[City]
      ,[State]
      ,[Stadium]
  FROM [NFL].[dbo].[Teams]
END
GO

Open in new window



CREATE PROCEDURE [dbo].[FETCHTEAM](@TeamID INT)
AS
BEGIN
SELECT [TeamID]
      ,[TeamName]
      ,[ConferenceID]
      ,[Conference]
      ,[Division]
      ,[TeamWebsite]
      ,[TeamLogo]
      ,[TeamCheerleaders]
      ,[City]
      ,[State]
      ,[Stadium]
  FROM [NFL].[dbo].[Teams]
      WHERE [TeamID] = @TeamID
END
GO

Open in new window



My mvc application basically just displays my table on a Flexigrid.

When I run my Visual Studio 2013 project my application works fine and this is what my flexigrid looks like:

my flexigrid working just fine with the Teams table
If you notice the column called TeamWebsite holds the website url of each of the team's websites.

What I am trying to do is when i click on a row in the TeamWebsite column then I am taken to that team's website.

So for example, when I click on  http://www.dallascowboys.com in the TeamWebsite column of my flexigrid then I want to be taken to that url.  So whatever team I click on in the TeamWebsite column then I am taken to that team's website.


So far this is what I have in my view file Index.cstml

@{
    ViewBag.Title = "Index";
}

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.8.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/flexigrid/flexigrid.pack.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Scripts/flexigrid/css/flexigrid.css")" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        $(document).ready(function () {

            $("#fff").flexigrid
            (
            {
                url: '/Home/List/',
                dataType: 'json',
                colModel: [
                { display: 'TeamID', name: 'TeamID', width: 50, sortable: true, align: 'center' },
                { display: 'TeamName', name: 'TeamName', width: 150, sortable: true, align: 'left' },
                { display: 'Conference', name: 'Conference', width: 60, sortable: true, align: 'center' },
                { display: 'Division', name: 'Division', width: 60, sortable: true, align: 'center' },
                { display: 'TeamWebsite', name: 'TeamWebsite', width: 190, sortable: true, align: 'left', process: procMe}
                ],
                buttons: [
                { name: 'Add', bclass: 'add', onpress: add },
                { name: 'Edit', bclass: 'edit', onpress: edit },
                { name: 'Delete', bclass: 'delete', onpress: del },
                { separator: true },
                { name: 'A', onpress: sortAlpha },
                { name: 'B', onpress: sortAlpha },
                { name: 'C', onpress: sortAlpha },
                { name: 'D', onpress: sortAlpha },
                { name: 'E', onpress: sortAlpha },
                { name: 'F', onpress: sortAlpha },
                { name: 'G', onpress: sortAlpha },
                { name: 'H', onpress: sortAlpha },
                { name: 'I', onpress: sortAlpha },
                { name: 'J', onpress: sortAlpha },
                { name: 'K', onpress: sortAlpha },
                { name: 'L', onpress: sortAlpha },
                { name: 'M', onpress: sortAlpha },
                { name: 'N', onpress: sortAlpha },
                { name: 'O', onpress: sortAlpha },
                { name: 'P', onpress: sortAlpha },
                { name: 'Q', onpress: sortAlpha },
                { name: 'R', onpress: sortAlpha },
                { name: 'S', onpress: sortAlpha },
                { name: 'T', onpress: sortAlpha },
                { name: 'U', onpress: sortAlpha },
                { name: 'V', onpress: sortAlpha },
                { name: 'W', onpress: sortAlpha },
                { name: 'X', onpress: sortAlpha },
                { name: 'Y', onpress: sortAlpha },
                { name: 'Z', onpress: sortAlpha },
                { name: 'ALL', onpress: sortAlpha }
                ],
                searchitems: [
                { display: 'TeamID', name: 'TeamID' },
                { display: 'TeamName', name: 'TeamName', isdefault: true },
                { display: 'Conference', name: 'Conference' },
                { display: 'Division', name: 'Division' },
                { display: 'TeamWebsite', name: 'TeamWebsite' }
                ],
                singleSelect: true,
                sortname: "TeamID",
                sortorder: "asc",
                usepager: true,
                title: 'NFL Teams',
                useRp: true,
                rp: 10,
                showTableToggleBtn: true,
                width: 800,
                height: 255
            }
            );


        });

        function sortAlpha(com) {
            jQuery('#fff').flexOptions({ newp: 1, params: [{ name: 'letter_pressed', value: com }, { name: 'qtype', value: $('select[name=qtype]').val() }] });
            jQuery("#fff").flexReload();
        }

        function edit(com, grid) {

            // alert(com); // Edit

            if ($('.trSelected', grid).length == 1) {
                var items = $('.trSelected', grid);
                alert(com + ' ' + items[0].id.substr(3));
            }
        }

        function add(com, grid) {

            alert(com);

            /*if ($('.trSelected', grid).length == 1) {
                var items = $('.trSelected', grid);
                alert(items[0].id.substr(3));
            }*/
        }

        function del(com, grid) {

            // alert(com); // Delete

            if ($('.trSelected', grid).length == 1) {
                var items = $('.trSelected', grid);
                alert(com + ' ' + items[0].id.substr(3));
            }
        }


        // go to google on row click
        function procMe(celDiv, TeamWebsite) {
            $(celDiv).click(function () {                
                window.location.assign("http://www.google.com")
            });
        }


    </script>

    <title>NFL Teams Flexigrid</title>

</head>
<body>
    <div>
        <table id="fff" style="display:none"></table>
    </div>
</body>

</html>

Open in new window




If you notice above,  i added this    , process: procMe to the following line of the colModel:[

{ display: 'TeamWebsite', name: 'TeamWebsite', width: 190, sortable: true, align: 'left', process: procMe}

so the function I'm calling on the row click for my TeamWebsite row looks like this:

        function procMe(celDiv, TeamWebsite) {
            $(celDiv).click(function () {                
                window.location.assign("http://www.google.com")
            });
        }

Right now if I click any row of the TeamWebsite column I'm taken to google.

I tried to change it to this, but it's still nor working.

        function procMe(celDiv, TeamWebsite) {
            $(celDiv).click(function () {                
                window.location.assign(TeamWebsite)
            });
        }


Anyone know where I'm making a mistake in my javascript function?  
How do I fix it so on when I click on a row in my TeamWebsite column I'm taking to the url of that row?

You can download my Visual Studio 2013 project here.
Just create table and sproc and change web config to your server and then run.:

Download Project
0
Comment
Question by:maqskywalker
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 40261995
Try

window.location.assign($(this).text())
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month16 days, 22 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question