I need to pass parameters to a function and it's not working for some reason. Can I mix normal JS with JQuery stuff?
<script type="text/javascript" src="javascript/jquery-1.5.1.js"></script>
<script type="text/javascript">
function copyNotification(role, type, location) {
alert(role);
$("notifyRole").val(role);
$("notifyType").val(type);
$("notifyLocation").val(location);
};
</script>
It alerts the role properly, but it's not assigning the values. Do I need to do something for it to recognize the JQuery stuff?
If it helps, I'm calling it like this:
<a href="#" onclick="copyNotification('752', 'freeze', 'pe1v');">
<img src="images/copy.png" title="@@Copy" border="0">
</a>