Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Style input type file Reply To: Style input type file

#146082
sadunaresh
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>});`