Change:
$().ready(function() {
to
$(document).ready(function() {
On Jul 6, 9:50 pm, Misteka <[email protected]> wrote:
> Hi all
>
> Pulling out hair that doesn't exist.
>
> When I run the following code, none of the set's are being done. Most
> important one for me is the action attribute.
>
> Can anyone help?
>
> <script type="text/javascript" language="JavaScript">
> $().ready(function() {
> var url = $("#aggurl").val();
> alert(url);
> $("#frmhclogin").attr("action", url);
> $("#this_job").val(url);
> $("#id_no").val("value");
> $("#email").val("value");});
>
> </script>
>
> <h2>Title</h2>
> <div id="hcapply_dialog" class="flora" title="Log onto">
> <p>
> <form id="frmhclogin" name="frmhclogin" action="" method="post"
> class="flora">
> <label for="id_no">ID:</label> <input name="id_no" type="text"
> id="id_no" /><br />
> <label for="email">Email Address:</label> <input name="email"
> type="text" id="email" /><br />
> <input id="share_this" name="share_this" type="submit" value="Go"
> class="small" style="float: right;" />
> </form>
> </p>
> <br />
> </div>