Hi Im new to jquery and Im a bit lost, Ive been trying to replace a standard javascript alert with a jquery popup but nothing seems to work,
Here is all the info for the popup:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
<!-- JNotify -->
<link rel="stylesheet" type="text/css" href="jNotify.jquery.css" media="screen" />
<script type="text/javascript" src="jNotify.jquery.js"></script>
<!-- JS to add -->
<script type="text/javascript">
$(document).ready(function(){
$("a.jnotify_exemple").click(function(e){
e.preventDefault();
jNotify(
'Here the message !!<br />You can write HTML code <strong>bold</strong>, <i>italic</i>, <u>underline</u>',
{
autoHide : true, // added in v2.0
clickOverlay : false, // added in v2.0
MinWidth : 250,
TimeShown : 3000,
ShowTimeEffect : 200,
HideTimeEffect : 200,
LongTrip :20,
HorizontalPosition : 'center',
VerticalPosition : 'top',
ShowOverlay : true,
ColorOverlay : '#000',
OpacityOverlay : 0.3,
onClosed : function(){ // added in v2.0
},
onCompleted : function(){ // added in v2.0
}
});
});
});
</script>
<a href="#" class="jnotify_exemple"> Complex Notify </a>
I need to replace the alert below:
function regformhash(form, uid, email, password, conf) {
// Check each field has a value
if (uid.value == '' || email.value == '' || password.value == '' || conf.value == '') {
alert('You must provide all the requested details. Please try again');
return false;