jQuery fancybox url

Ovevehepvup

New Member
In my HTML I have the following situation:\[code\]<a href='http://stackoverflow.com/questions/3738996/product-enquiry.php?product=SR1'>Enquire about SR1</a>\[/code\]This then sends a user through to a separate page where the product ID (in this case SR1) is passed into a input field:\[code\]<input type='text' value='http://stackoverflow.com/questions/3738996/<?php echo $_GET['product'] ?>'>\[/code\]I would prefer to use fancybox to bring up the product enquiry form in a pop up window. To do this, the JavaScript code for fancybox is:\[code\]$('.product-enquiry').attr("href", "product-enquiry.php")\[/code\]How do I append a product number to the end of "product-enquiry.php: in the javascript file so that the product number changes depending on which link a user clicks on (For example, if they select the product 'SR2' - how do I pass this through?)Hope this makes sense and any help would be great.Thanks, Mark.
 
Back
Top