-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I grab a query string value and apply it on load? #524
Comments
You could do something like this: |
Oh my word I looked forever and couldn't find that. Good news is that I almost had that myself but messed up the "set @value to result" part.. Thanks!!! |
It seems this doesn't work with a select box.
I can log the "value" and it works. I'm thinking there is some sort of race condition. Also, I have another select box that does the same thing but the "options" are the result of a slow hx-get query. Any tips on this one? Thanks |
you didn't control the default select option using the value property. You can use the selected property into the option. ` <select class="w-80" id="documentStandard" name="documentStandard" end" > |
Oh, cool. Thanks. I also discovered this works but not sure how/why.
|
I have an input box. What I would like to do is set the value of it on page load from the URL query parameter.
For example, in JS I would do this:
However, I can't seem to figure out how to do this in HTMX and/or Hyperscript.
Any ideas how I can do this?
Thanks!
The text was updated successfully, but these errors were encountered: