jQuery in pagge?
-
I would like to use this code in a page, is this possible?
<!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> jQuery(document).ready(function($) { $("a").click(function(){ $('#versie').text('Welkom '+ $(this).attr('data-name')); }); }); </script> </head> <body> <div id="div1"><h2>Selecteer de gewenste versie: <span id="versie"></span></h2></div> <a href="#" data-name="2007">2007</a> | <a data-name="2010" href="#">2010</a> | <a data-name="2013" href="#">2013</a> </body> </html>Try this code in: http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_hide
The topic ‘jQuery in pagge?’ is closed to new replies.