jquery 1.6 code into a form_input() ? |
[eluser]brucebat[/eluser]
Hi all, I have been experimenting with this piece of javascript using jquery 1.6.2 http://jsfiddle.net/nNpjm/ Now I want to include it in the form_input() field by passing it as a variable with javascript inside? However it does not seem to work using this: Code: $script = "input.click(function() This is the html source is all messed up Code: <input type="text" name="time1" value="00:00:00" id="time1" maxlength="8" input.click(function() Do I need to do it another way for this to work? It uses onclick and keypush
[eluser]toopay[/eluser]
Why not putting just an id attribute at input, then assign an inline script to handle that? |
Welcome Guest, Not a member yet? Register Sign In |