Hi all,

How to replace hardcode_value in jquery library
with something more flexible value (for example something  value from
html document)?

For example I'd like to substitute
the "hardcode_value" (in jquery file)
with the value "input1" (in html document).

thanks

Antonio

"html document"
<div id='contactForm'>
<a href='#' class='contact' value='input1'>Demo</a>
</div>


"jquery documetn"
$(document).ready(function () {
        $('#contactForm input.contact, #contactForm a.contact').click
(function (e) {
                e.preventDefault();
                // load the contact form using ajax
                $.get("hardcode_value", function(data){
........
}

Reply via email to