At this moment i use in common.js.php the following code to compare the ship and prod fileds:
Code: Select all
if($j('#ship').val() != $j('#prod').val()){ modal_window({ message: '<div class="alert alert-danger"><?php echo addslashes($Translation['field not equal']); ?></div>', title: "<?php echo addslashes($Translation['error:']); ?> Szállítólevélről kód", close: function(){ $j('[name=ship]').focus(); $j('[name=ship]').parents('.form-group').addClass('has-error'); } }); return false; };
Any help would be greately appreciated.