nofel — 2013-04-29T05:15:27-04:00 — #1
I m new to Js and i am getting this error. i dont understand why because the id is there
pullo — 2013-04-29T05:57:30-04:00 — #2
Where are you seeing the error.
The Fiddle works as it should for me.
nofel — 2013-04-29T06:11:44-04:00 — #3
I am using firefox and firebug shows that error also nothing happens when i do the required action
pullo — 2013-04-29T06:17:43-04:00 — #4
Sorry, it works as expected for me in the latest FF (20.0.1).
The only thing I noticed was that:
<label for="storename">Store Name</label>
<label for="storeName">Store Name</label>
nofel — 2013-04-29T06:21:20-04:00 — #5
I have updated the fiddle to my complete one. Pls have a look now
pullo — 2013-04-29T06:22:31-04:00 — #6
Do you have a new link?
I'm still seeing the old fiddle.
nofel — 2013-04-29T06:26:09-04:00 — #7
pullo — 2013-04-29T06:29:27-04:00 — #8
That works exactly as expected for me in the latest FF and Chrome, too.
I don't know if that is a good thing or a bad thing
What is it exactly that you are trying to do?
How can I reproduce your error?
nofel — 2013-04-29T06:32:57-04:00 — #9
This is my head section
<link rel="stylesheet" href="style.css">
i am trying to make a form on which some fields are mandatory without it the form won't submit and on submit i will send a email most probably via php function
even if chorme i am getting
Uncaught TypeError: Cannot set property 'onblur' of null
pullo — 2013-04-29T06:48:04-04:00 — #10
Ah, ok. What is (very probably) happening that is you are including your JS file at the top of your document and it is trying to reference elements on the page before they exist.
Try moving it to the bottom of your page, like this:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
... Your Content ...
Also, in the code you posted, the <title> element should come within the <head> element.
nofel — 2013-04-29T06:58:29-04:00 — #11
pullo — 2013-04-29T07:16:03-04:00 — #12
Glad to hear it!
That can be a bit of a gotcha moment when you first encounter it