Can anybody pls convert this javascript code to jquery [closed]
<script type="text/javascript">
function checkData(id)
{
document.f开发者_如何学PythonrmAddProduct.hidActionId.value = id;
document.frmAddProduct.submit();
}
</script>
function checkData(id) {
$("#hidActionId").val(id);
$("#frmAddProduct").submit();
}
function checkData(id) {
$("#hidActionId").val(id);
$("#frmAddProduct").submit();
}
Profit!
<script type="text/javascript">
function checkData(id)
{
$('#hidActionId').val(id);
$('#frmAddProduct').sumbit();
}
</script>
精彩评论