Some coding tips 4-you.
If you are using elements in your project like…
-buttons
-images
-stripes
-boxes
…and so on…
Do yourself a favour and give them plausible IDs!
For example —> which element is in your project → “#set” ???
Is it a button?
Is it a box?
Is it a textfield?
Is it something else?
You as project-creator, you will be able to read your code faster than, someone-extern who you are asking for help, because nobody can see your project and it’s SETUP.
CONCLUSION:
You always should give good-readable IDs to every of your elements.
Example:
ID for a BUTTON —> “#btnFacebook” ← do you have any sugestions, what this element could be?
…or… —> “#txtFieldSet” <— ??? Still plausible enough?
The more your CODE will growing, the more difficult it will be to read your own CODE!
So if —> ‘#set’ <— is a TEXTFIELD or a INPUTFIELD it surely will expect a ---------------->STRING as value.
$w ( ’ #set ’ ). value = 1 ; —> VALUE = NUMBER
$w ( ’ #set ’ ). value = “1” ; —> VALUE = STRING