- This topic is empty.
May 30, 2016 at 4:05 am #242246
First of all i want to recommend your works and efforts towards making everyone equal in the sense of offering assistance.
I came across this site as i was reading a book on css animation and transition. I just decided to follow the link if i could get more css tutorials and tips little did i know that this site has solution to my problem.
What would you like to achieve? It is merely purpose driven. Any HTML elements in your page can be manipulated with JS… in countless ways. But you must have some reason for it.May 31, 2016 at 10:35 pm #242309
Just need a suitable material that explains it better..June 1, 2016 at 7:16 am #242323bearheadParticipant
I find that I learn programming languages most efficiently by doing.
Start with a small project and build from there.
Maybe something like this:
create a script that changes the text of a button when the user clicks it.
To do that you’ll need to know:
How to call a function on click
How to change the inner html of an element
off to google with you!June 1, 2016 at 11:00 am #242331amanda_Participant
@AMANDA… thanks ma’amJune 4, 2016 at 8:54 am #242455rkieruParticipant
For example, in jQuery it might look like this:
In jQuery, this would take all instances where the class
.btn-actionwas applied and hide that element.June 4, 2016 at 9:09 am #242457I.m.learningParticipant
PHP is only going to get you so far.
Many sites use
As Shikkedielsaid, “it’s purpose-driven.”
Meaning, what are you looking to do?
What do you do with your PHP?
How about an example for both- for the time:
PHP you do what, create a variable, and use some code? Okay..
echo($t . “<br>”);
So, as soon as the page loads, it’s there.
But what if you don’t want the time to be displayed as soon as the page loads?
onclick=”document.getElementById(‘time).innerHTML = Date()”>What’s the Time?</button>
As soon as the user clicks the button, the time is displayed.