I want to include two jquery library in same page.function name 'myfunction' is common for both selectbox and datepicker.datepicker function call uses .onload the page I called loaddata() function for pagination.It uses .So I want to know how to include both the library in same page.
Now I'm using 1.4.3 library so onload and .rec select box works but not datepicker function.
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/start/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
The above library is for calling function via datepicker
$rec="select * from recruiter where comp_id='$comp'";
$rec1=mysql_query($rec);
echo '<select class="rec" id="r" name="e_first_name" style="width:155px;" required onchange="myFunction(this.value);">';
echo '<option value="" selected>Select Recruiter</option>';
while($rfet=mysql_fetch_assoc($rec1))
{
echo '<option value="'.$rfet["e_id"].'">'.$rfet["e_first_name"].'</option>';
}
echo '</select>';
echo ' <input type="text" name="dob" style="width:155px;display:none;" id="datepicker1" placeholder="Choose Date" onchange=myFunction("'.$rfet["e_id"].'"); size=18 maxlength=50>';
echo '<select name="report" style="width:155px;" class="report" onchange=myFunction("'.$rfet["e_id"].'");>
<option selected> Select Filter</option>
<option value="datz">By Date</option>
<option value="week">By week</option>
<option value="month">By month</option>
</select>';
echo ' <input type="text" name="dob" style="width:155px;display:none;" id="datepicker1" placeholder="Choose Date" onchange=myFunction("'.$rfet["e_id"].'"); size=18 maxlength=50>';
function myFunction(e_id)
{
$("#pre").hide();
var fdat= $("#datepicker1").val();
var filt= $(".report").val();
var c=$("#r").val();
$.ajax({
type: "POST",
url: "query3.php",
data: { action: c,filt: filt,fdat: fdat},
error: function(msg) {
},
success: function(text) {
$(".refresh").html(text);
}
});
}