Hi,
I am uploading multiple file acc. to the limit enter in the textbox.
Suppose in a text box if i enter 2,then two browse button can upload two different file having different format

1st file=only jpg
2nd file=only text file

I completed all the validation part of both file.what i want to do in ajax/javascript
when a user enter 3 in text box then 3 upload box should be come.& want to import all validation on upload file

you need to create a class for that.

then on your javascript:

var number = $("#idOfYourTextbox").val();

$.ajax({
  type:"POST",
  url:  (example url only) "server/filename.php",
  data: dataString,
  success: function(msg){
     // your code here
  }
})
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.