Hello,
Why my code not work:
//Javascirpt code
$(“#container”).load(“php_script/page_input.php”,function(){
$(“#nopol”).jqxInput();
//above selector error VM584:3 Uncaught TypeError: $(…).jqxInput is not a function
});
// php code
<table>
<tr><td>No.Pol</td><td>:</td><td><input type=”text” id=”nopol”/></td></tr>
<tr><td>Tanggal</td><td>:</td><td> <input type=”text” id=”tgl_lp”/></td></tr>
</table>
I have include my head tag:
<link rel=”stylesheet” href=”js/jqwidgets-ver4.1.2/jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”js/jqwidgets-ver4.1.2/scripts/jquery-1.11.1.min.js”></script>
<script type=”text/javascript” src=”js/jqwidgets-ver4.1.2/jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”js/jqwidgets-ver4.1.2/jqwidgets/jqxinput.js”></script>