javascript - 'Click to accept' checkbox to enable link -


i need have 'click accept terms' checkbox on site (http://www.formulafast.co.uk/book-now.html), enables link page when checked.

so far have adapted script , html has worked (elsewhere on internet) , works fine in js fiddle (see http://jsfiddle.net/pjs53/hqjxw/104/) paste onto page fails work.

html is:

<input type="checkbox" id="check"/><label for="check">i have read , accept <a href="http://www.formulafast.co.uk/terms--conditions.html">terms & conditions</a></label></br></br> 

the javascript in jsfiddle above.

worth mentioning i'm using weebly...and html part embedded snippet halfway down page. javascript in header section of particular page. if has better suggestion please don't shy.

i have feeling may placement of code may causing not work, or missing tag link 2 together...any ideas?

reading comments above, forgot include jquery in html, :

<script src="path_to_jquery_file"></script> 

your jsfiddle using jquery framework (look on left), that's why works not web page.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -