I was trying to add the password into an input without class or id.
This is my code:
<form>
<div class="something"> </div>
<input type="password" name="password" placeholder="password">
<input type="submit" value="Watch Video">
</form>
And i was trying something like this:
jQuery(document.ready(function($){
$('.something').next().write('password');
});
How can i make it? And after put the password, can i submit the next input?
div#somethingwould be more appropriate thandiv.something, as I'd infer you want to refer to this single, unique element.