How to Make a jQuery Variable

Next Video:
How to Newline in PHP....5

Making a jQuery variable is something you can do in a couple of different ways depending on exactly what it is you're trying to accomplish. Learn how to make a jQuery variable with help from a self-taught web developer in this free video clip.

Part of the Video Series: Web Programming
Promoted By Zergnet


Video Transcript

Hi, I'm Christina Chiu. I'm a Computer Web Specialist and today, I'm going to show you how to create a jQuery variable. Now, we're going to open our text header and we're going to open up our HTML file. So, our HTML file we in, included the J, jQuery library. So, over here, as we see, And we also incorporated our jQuery, our own little jQuery file. So, javascript goes text.javascript src=test.js and so, we'll open our test.js file and we have document.ready function. So, to incor, to create a jQuery variable, we just need to simply use the bar and it'll be name, and to add value to it, you can add any value to it, it could be name=name or it could even be bar name=the value of input. And so, we can make a value of input by simply typing dollar sign input name.. So that is how you create a jQuery variable. Thanks so much for your time, my name is Christina Chiu.


Related Searches

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!