Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^8: Converting hash into js object properties

by nysus (Parson)
on Nov 21, 2017 at 16:57 UTC ( [id://1203919]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Converting hash into js object properties
in thread Converting hash into js object properties

Ok, this is for the jquery validation module and is being used inside of a jquery call like so:

$("#myform").validate({ rules: { contact: { required: true, email: { depends: function(element) { return $("#contactform_email").is(":checked"); } } } } });

So, I'm not familiar enough with jQuery to know if adding the double quotes will break things or not. I guess I could try and see what happens.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1203919]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-24 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found