Home › Forums › CSS › Style input type file › Reply To: Style input type file
August 7, 2013 at 9:46 pm
#146082
Participant
no need of jars… jquery is just client side scripting…
make sure you include jquery .js (jquery library) either by using CDN(content delivery network) as below
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
or download it and link it in your document..
and include following code for your specific requirement…
`$(document).ready(function() {
$(“.link”).click(function (e) {
//alert(“hello”);
$(‘input[type=file]’).click(); // Open dialog
e.preventDefault();
});</p>
<p>});`